Re: [PATCH] alloc_tag: Use %pe format specifier

From: Suren Baghdasaryan

Date: Wed Nov 05 2025 - 19:39:50 EST


On Tue, Nov 4, 2025 at 8:47 PM SeongJae Park <sj@xxxxxxxxxx> wrote:
>
> 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>

Acked-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>

>
>
> Thanks,
> SJ
>
> [...]