Re: [PATCH] ext4: Use %pe to print PTR_ERR() in namei.c

From: Theodore Tso

Date: Thu May 28 2026 - 11:05:36 EST


On Fri, Apr 24, 2026 at 04:22:45PM +0100, Abdellah Ouhbi wrote:
> Fix coccicheck warning
> ./namei.c:150:25-32: WARNING: Consider using %pe to print PTR_ERR()
>
> Replace %ld with %pe and PTR_ERR(bh) with bh pointer.
> The %pe specifier automatically converts error pointers to
> human-readable error names instead of raw error codes.
>
> Signed-off-by: Abdellah Ouhbi <abdououhbi1@xxxxxxxxx>

I've folded the three patches you had sent into a single commit. For
this kind of cleanup, there's no reason to have separate patches for
each file.

Thanks,

- Ted