[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251105044715.71861-1-sj@kernel.org>
Date: Tue, 4 Nov 2025 20:47:14 -0800
From: SeongJae Park <sj@...nel.org>
To: zeng_chi911@....com
Cc: SeongJae Park <sj@...nel.org>,
akpm@...ux-foundation.org,
surenb@...gle.com,
kent.overstreet@...ux.dev,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
zengchi@...inos.cn
Subject: Re: [PATCH] alloc_tag: Use %pe format specifier
On Wed, 5 Nov 2025 10:39:25 +0800 zeng_chi911@....com wrote:
> From: Zeng Chi <zengchi@...inos.cn>
>
> 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@...inos.cn>
Acked-by: SeongJae Park <sj@...nel.org>
Thanks,
SJ
[...]
Powered by blists - more mailing lists