Re: [PATCH v2 3/3] mm/zswap: use %pe to print error pointers

From: David Hildenbrand (Red Hat)
Date: Mon Nov 24 2025 - 05:56:05 EST


On 11/23/25 04:04, Sahil Chandna wrote:
Use the %pe printk format specifier to report error pointers directly
instead of printing PTR_ERR() as a long value. This improves clarity,
produces more readable error messages.

This instance was flagged by the Coccinelle script
(misc/ptr_err_to_pe.cocci) as an opportunity to adopt %pe.

Found by: make coccicheck MODE=report M=mm/
No functional change intended.

Acked-by: Yosry Ahmed <yosry.ahmed@xxxxxxxxx>
Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Signed-off-by: Sahil Chandna <chandna.sahil@xxxxxxxxx>
---

Acked-by: David Hildenbrand (Red Hat) <david@xxxxxxxxxx>

--
Cheers

David