[PATCH 1/1] kexec: Use %pe format specifier for error pointer printing
Simon Horman
horms at kernel.org
Tue Oct 21 02:41:31 PDT 2025
On Thu, Oct 16, 2025 at 08:03:20PM +0000, Zhu Yanjun wrote:
> 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.
>
> Signed-off-by: Zhu Yanjun <yanjun.zhu at linux.dev>
Thanks,
This looks good to me, even though I note that this file
has moved in linux-next.
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the kexec
mailing list