Commit 7efb1425 authored by Mark-PK Tsai's avatar Mark-PK Tsai Committed by Mathieu Poirier

remoteproc: Use %pe format string to print return error code

Use %pe format string to print return error code which
make the error message easier to understand.
Signed-off-by: default avatarMark-PK Tsai <mark-pk.tsai@mediatek.com>
Link: https://lore.kernel.org/r/20211102141535.28372-1-mark-pk.tsai@mediatek.comReviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
[Fixed capital letter in subject line]
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent fa55b7dc
......@@ -577,8 +577,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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment