Re: [PATCH 3/3] mm/zswap: use %pe to print PTR_ERR() values
From: Nhat Pham
Date: Wed Nov 19 2025 - 07:50:16 EST
On Tue, Nov 18, 2025 at 6:09 AM 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>
Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>