Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4156187pxb; Tue, 2 Nov 2021 05:12:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfvoas5r4o2LeZikew/kVk25MlDzsm6JN3IDtMM/Bb0IHpWzuY5LNrCZro6RWuDJOJy0AC X-Received: by 2002:a17:906:369a:: with SMTP id a26mr43638357ejc.539.1635855167731; Tue, 02 Nov 2021 05:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635855167; cv=none; d=google.com; s=arc-20160816; b=D81l/u1f/rxNfS5WWppselfn+GQShy6aVx5cxacEpzKJgfuQ2xNQh2TPV6uQB1bYqc GDm8B0jiornTWyi9bLLzOtLpNJ7EqrT0TEwlbc62RBCyuSedh5PKDkHfp3rEU2ZpFTJa LtEIf1RsgnF2u6xbrc4nc2UqPg7Y9Uuac5m6KR8SLEEd3TCd70FqCRZ4emQvOQZZwbMT 30qqobJST83UuxcDClPGLtcS1Kz8Uv/UXgC3bkXvkA4P4TAwwhmIJnCI3UCIlWJOgg3S B0W+3S9Hye/QrS6PisiTDS0w4sZep0MMi1vlzMSDAmTXJvotw6axs16MuLkSa8/hBvIp 1/hQ== 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=i6XT7L3wTQJpwLaflBmfH4ucJRRShSzCY920Zsne0No=; b=gFZEldKiT4i4xUnozQqeeez6P3cKjyutWDluePwV+j7BRw8WxJgTMT0r0kxme7l33H vdDuv0IBRWKSZu6cpQGVdc6hLxfA8GUDVDSSKEgGErpRoj98S5lp5d/XOX1779qf2vw7 SlTrx+PGYFYn6ITUeC8So5KSrsX1+eP0o5OIg1Jass4ql/qSrjnDddzVqB2PrnvWUmPJ uOh0kSfyYl4fndyr5Fpse3+GJgagzrzZJDk1lT1OyBYQsQr9yyVbtMGhL+r5rP5+Lj5L 4WR87SRp2LMF+4h9XcppK9GY28vCo+nQMJyvUli4K6Vsq+cjbwbr4kk3IRmnz32E54QS Y03Q== 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 r19si23563003edt.365.2021.11.02.05.12.22; Tue, 02 Nov 2021 05:12:47 -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 S230326AbhKBMKu (ORCPT + 99 others); Tue, 2 Nov 2021 08:10:50 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:51390 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229577AbhKBMKr (ORCPT ); Tue, 2 Nov 2021 08:10:47 -0400 X-UUID: fc93807cb8d54e30a261ce4965f119d4-20211102 X-UUID: fc93807cb8d54e30a261ce4965f119d4-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 142101394; Tue, 02 Nov 2021 20:08:08 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 2 Nov 2021 20:08:07 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 2 Nov 2021 20:08:07 +0800 From: Mark-PK Tsai To: , , CC: , , , , , , Subject: [PATCH] remoteproc: use %d format string to print return error code Date: Tue, 2 Nov 2021 20:08:05 +0800 Message-ID: <20211102120805.27137-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 %d 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 502b6604b757..c5cc7f30f06e 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -575,7 +575,7 @@ 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", + "Failed to set DMA mask %llx. Trying to continue... %d\n", dma_get_mask(rproc->dev.parent), ret); } -- 2.18.0