All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] remoteproc: use %pe format string to print return error code
@ 2021-11-02 14:15 ` Mark-PK Tsai
  0 siblings, 0 replies; 30+ messages in thread
From: Mark-PK Tsai @ 2021-11-02 14:15 UTC (permalink / raw)
  To: ohad, bjorn.andersson, mathieu.poirier
  Cc: matthias.bgg, linux-remoteproc, linux-kernel, linux-arm-kernel,
	linux-mediatek, mark-pk.tsai, yj.chiang

Use %pe format string to print return error code which
make the error message easier to understand.

Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.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


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2021-12-14  1:33 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 14:15 [PATCH v2] remoteproc: use %pe format string to print return error code Mark-PK Tsai
2021-11-02 14:15 ` Mark-PK Tsai
2021-11-02 14:15 ` Mark-PK Tsai
2021-11-11 18:18 ` Mathieu Poirier
2021-11-11 18:18   ` Mathieu Poirier
2021-11-11 18:18   ` Mathieu Poirier
2021-11-12  2:13   ` Mark-PK Tsai
2021-11-12  2:13     ` Mark-PK Tsai
2021-11-12  2:13     ` Mark-PK Tsai
2021-11-12 16:25     ` Mathieu Poirier
2021-11-12 16:25       ` Mathieu Poirier
2021-11-12 16:25       ` Mathieu Poirier
2021-11-16 13:57       ` Mark-PK Tsai
2021-11-16 13:57         ` Mark-PK Tsai
2021-11-16 13:57         ` Mark-PK Tsai
2021-11-16 16:29         ` Mathieu Poirier
2021-11-16 16:29           ` Mathieu Poirier
2021-11-16 16:29           ` Mathieu Poirier
2021-12-13  7:20           ` Mark-PK Tsai
2021-12-13  7:20             ` Mark-PK Tsai
2021-12-13  7:20             ` Mark-PK Tsai
2021-12-13 16:55             ` Mathieu Poirier
2021-12-13 16:55               ` Mathieu Poirier
2021-12-13 16:55               ` Mathieu Poirier
2021-12-14  1:31               ` Mark-PK Tsai
2021-12-14  1:31                 ` Mark-PK Tsai
2021-12-14  1:31                 ` Mark-PK Tsai
2021-11-17 14:59 ` Bjorn Andersson
2021-11-17 14:59   ` Bjorn Andersson
2021-11-17 14:59   ` Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.