[PATCH] remoteproc: use %d format string to print return error code
Mark-PK Tsai
mark-pk.tsai at mediatek.com
Tue Nov 2 07:04:33 PDT 2021
> On Tue, Nov 02, 2021 at 08:08:05PM +0800, Mark-PK Tsai wrote:
> > Use %d format string to print return error code which
> > make the error message easier to understand.
>
> Even better, if you use %pe after converting "ret" to a pointer via
> ERR_PTR(ret), when the kernel is appropriately configured, the kernel
> will give a textual version of the error code, which is even easier!
Thanks for the suggestion!
I will use it in v2.
More information about the Linux-mediatek
mailing list