[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aQcBXnYEzMhssa-C@kernel.org>
Date: Sun, 2 Nov 2025 08:59:42 +0200
From: Mike Rapoport <rppt@...nel.org>
To: Pasha Tatashin <pasha.tatashin@...een.com>
Cc: akpm@...ux-foundation.org, brauner@...nel.org, corbet@....net,
graf@...zon.com, jgg@...pe.ca, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-mm@...ck.org,
masahiroy@...nel.org, ojeda@...nel.org, pratyush@...nel.org,
rdunlap@...radead.org, tj@...nel.org, yanjun.zhu@...ux.dev
Subject: Re: [PATCH v9 9/9] liveupdate: kho: Use %pe format specifier for
error pointer printing
On Sat, Nov 01, 2025 at 10:23:25AM -0400, Pasha Tatashin wrote:
> From: Zhu Yanjun <yanjun.zhu@...ux.dev>
>
> Make pr_xxx() call to use the %pe format specifier instead of %d.
> The %pe specifier prints a symbolic error string (e.g., -ENOMEM,
> -EINVAL) when given an error pointer created with ERR_PTR(err).
>
> This change enhances the clarity and diagnostic value of the error
> message by showing a descriptive error name rather than a numeric
> error code.
>
> Note, that some err are still printed by value, as those errors
> might come from libfdt and not regular errnos.
>
> Signed-off-by: Zhu Yanjun <yanjun.zhu@...ux.dev>
> Co-developed-by: Pasha Tatashin <pasha.tatashin@...een.com>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@...een.com>
> Reviewed-by: Simon Horman <horms@...nel.org>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@...nel.org>
> ---
> kernel/liveupdate/kexec_handover.c | 4 ++--
> kernel/liveupdate/kexec_handover_debugfs.c | 10 ++++++----
> 2 files changed, 8 insertions(+), 6 deletions(-)
--
Sincerely yours,
Mike.
Powered by blists - more mailing lists