Re: [PATCH 3/3] mm/zswap: use %pe to print PTR_ERR() values

From: SeongJae Park

Date: Tue Nov 18 2025 - 20:50:22 EST


On Tue, 18 Nov 2025 11:38:51 +0530 Sahil Chandna <chandna.sahil@xxxxxxxxx> 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.
>
> Signed-off-by: Sahil Chandna <chandna.sahil@xxxxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]