Re: [PATCH] alloc_tag: Use %pe format specifier
From: SeongJae Park
Date: Tue Nov 04 2025 - 23:47:19 EST
On Wed, 5 Nov 2025 10:39:25 +0800 zeng_chi911@xxxxxxx wrote:
> From: Zeng Chi <zengchi@xxxxxxxxxx>
>
> The %pe format specifier is designed to print error pointers. It prints
> a symbolic error name (eg. -EINVAL) and it makes the code simpler by
> omitting PTR_ERR();
>
> This patch fixes this cocci report:
> lib/alloc_tag.c:776:63-70: WARNING: Consider using %pe to print PTR_ERR()
>
> Signed-off-by: Zeng Chi <zengchi@xxxxxxxxxx>
Acked-by: SeongJae Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]