Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4287519pxb; Tue, 2 Nov 2021 07:18:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4dIzPVl+TYst/+MxsEGnd5Y7M2YQo81+cYtT4W6cDXdlRWzSsPXayLLYfcHR5TtpPfeSD X-Received: by 2002:a17:907:86aa:: with SMTP id qa42mr5112187ejc.358.1635862684124; Tue, 02 Nov 2021 07:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635862684; cv=none; d=google.com; s=arc-20160816; b=X7fZfifseG49IyDTwN5x9zjttYNN6BV9AsUa8ndiuhL69S/0aIZ84JRcSAoME3LT9Y llUgeJrD5bfwCC6PHUpeajAPpyR54IiinsFCGu4WMActz9JzH5NY8k/0vQGrnSTqSDUP 97nXYYKtK/Axxu3P+miuzjM/8KVOTiGgOACbofpNG0eJnZDF1xou0h6jASVf75be80Kh SCvZOfiuVzOOrLvgZf7hxWpyaD7iW/00LifoP1vjiE71XPvKtK682uvlsdPKgrRl58aQ A4pt1rVXkSXqTcbU9zQ1+u53b7smnsT10I6a5oVncYqvaPvG1nHx3FRS1Zc68DEVxEsM NJlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=f7iMgdNoySwkhMgYTv6uzXCzxh6ED7h2JslqxlAPYC0=; b=qX0EJ+EpAMGa3OPMh1DiTfdX08cQsA1xg+FHbHJ/djfGST3Nh5GyhNoLA53vfxopVV 3oWZ6U3a3FIav5JU4H3r9Jwg6WoW0H2UbQkT7SdwnUzRPaWTM8CRNab4c70UpMYq94AM 4u4vq+BMNeDe4+HanRlX2VJ++KfgwM+vss8qI4tUJxaF61me+Hfu7Kj13tV8JcKqlYd+ kg49VkYDpavC+Liz2QHf0jfXVUegrSZuL6plMP68bmt4Fl9bVyB2yx4JD6Wrn2tJF3/J wAJNNvoVG1Lr6zYIgTWGbRh0aFEAiKDPgwhpuqLtgMOGtccymcWP05o+tWgwVcQL7ESH yajg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si24056702edv.219.2021.11.02.07.17.39; Tue, 02 Nov 2021 07:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbhKBOSS (ORCPT + 99 others); Tue, 2 Nov 2021 10:18:18 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:49520 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229712AbhKBOSR (ORCPT ); Tue, 2 Nov 2021 10:18:17 -0400 X-UUID: 3648d3006f054c0d8cbbbf7b13307803-20211102 X-UUID: 3648d3006f054c0d8cbbbf7b13307803-20211102 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 366777280; Tue, 02 Nov 2021 22:15:39 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Nov 2021 22:15:37 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Nov 2021 22:15:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs10n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Tue, 2 Nov 2021 22:15:37 +0800 From: Mark-PK Tsai To: , , CC: , , , , , , Subject: [PATCH v2] remoteproc: use %pe format string to print return error code Date: Tue, 2 Nov 2021 22:15:35 +0800 Message-ID: <20211102141535.28372-1-mark-pk.tsai@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use %pe format string to print return error code which make the error message easier to understand. Signed-off-by: Mark-PK Tsai --- 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