[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YZUYu9Ko1lTgPslz@builder.lan>
Date: Wed, 17 Nov 2021 08:59:07 -0600
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: Mark-PK Tsai <mark-pk.tsai@...iatek.com>
Cc: ohad@...ery.com, mathieu.poirier@...aro.org,
matthias.bgg@...il.com, linux-remoteproc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, yj.chiang@...iatek.com
Subject: Re: [PATCH v2] remoteproc: use %pe format string to print return
error code
On Tue 02 Nov 09:15 CDT 2021, Mark-PK Tsai wrote:
> Use %pe format string to print return error code which
> make the error message easier to understand.
>
Reviewed-by: Bjorn Andersson <bjorn.andersson@...aro.org>
> Signed-off-by: Mark-PK Tsai <mark-pk.tsai@...iatek.com>
> ---
> drivers/remoteproc/remoteproc_core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index 502b6604b757..2242da320368 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -575,8 +575,8 @@ static int rproc_handle_vdev(struct rproc *rproc, void *ptr,
> dma_get_mask(rproc->dev.parent));
> if (ret) {
> dev_warn(dev,
> - "Failed to set DMA mask %llx. Trying to continue... %x\n",
> - dma_get_mask(rproc->dev.parent), ret);
> + "Failed to set DMA mask %llx. Trying to continue... (%pe)\n",
> + dma_get_mask(rproc->dev.parent), ERR_PTR(ret));
> }
>
> /* parse the vrings */
> --
> 2.18.0
>
Powered by blists - more mailing lists