Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2708632pxj; Mon, 31 May 2021 08:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPjfbJoFcFXwtXd+aPVdSOSeQuUggmEfgzqlqWdY0z0O1jMWKfmp68FnscmyZoa2BnHqjX X-Received: by 2002:a92:ddc6:: with SMTP id d6mr16948540ilr.51.1622475978037; Mon, 31 May 2021 08:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475978; cv=none; d=google.com; s=arc-20160816; b=nBw1nw0C0mpJktSk8hJsgozued6IrCMKmsBON6tzPw2KfFuP9TSNf0Vdro3T4eG7q5 Xs2V4fj9ZR4FdG0vp8uAYspdz+AsJjw+HabICFBig/7F7kZfC3SkvcIXJ8Wee13Qer3U Qgt1uHaz11xnX8gPyRdSaJNg+cnowQMnRzHvvC4uDdflcEvXp1je9xcUfa3LFZT8PsGF 4MeoucypU9M1Av4HrJ5tEpH74FPCRnIGk6FXIEOSoOf7kwxhneXEN/0KcoluAPM9mKGx W0E+FR8NHvwr0gXsOpnmMGpTZM0GbBAqqGHaQR3+/VbnFYtxUWj8x7kS0Ie4NRqsn749 wClA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CAkkriRCou7NbYwb+m9QxqRbdK0dPcJuHRhIaP9q/Pc=; b=mea2Veo5Eghyn78zwRMR457UcLw/soEp4cxStQH65BhyP3m6Ll1d2b468sr+BjAkVy xihUaBkGDNRtKF7l8y9Jc8Z61B0nIEkQT+4XUW9svtMF6M2zqbrdOCFbo5cDLK/CdJ0n tjPCg2glU4zRQFJaOYYfZT9Fg7ku8dQRGpI4VW8VvqhDnZwo4VcUwyFqjpdKEL/2zgJa iZqHTZcvRzNw0GXkHRGl26ADGjCCm1GsAwkTSPLBxolJDpQk4ysny/4lsF8aY1mGNGPY L6gV0iZdabdwBrBmvFmaJs1Tolydw3yi6YrAvBeKO/r/2GovDDakhvuuPf53HAUsN28C CqNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jeeKazfB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m2si16331379ilu.120.2021.05.31.08.46.05; Mon, 31 May 2021 08:46:18 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jeeKazfB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232881AbhEaPpu (ORCPT + 99 others); Mon, 31 May 2021 11:45:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233718AbhEaOZ2 (ORCPT ); Mon, 31 May 2021 10:25:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 440F461A2D; Mon, 31 May 2021 13:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468802; bh=Gw1F+//WV7Q5tW7vV65KSspkptm+ZEGBhsP1k4znZ0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jeeKazfBZ/YnC7X3vxAZIW7xN4+pbErsa1uITvnQChEP8IUyUY3XmOd1dN9qKZL9U jSUlsBAG1tM4U9+nh6Y2Spx5vr1iX6Op2gZHwn7drKVf1VKWbIJRFdtMHc5kIuF4ze pcdCBRB52tVLVAPV/3Jkuo92mC8zDs0R+9P+x4y8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 135/177] net: netcp: Fix an error message Date: Mon, 31 May 2021 15:14:52 +0200 Message-Id: <20210531130652.606363904@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit ddb6e00f8413e885ff826e32521cff7924661de0 ] 'ret' is known to be 0 here. The expected error code is stored in 'tx_pipe->dma_queue', so use it instead. While at it, switch from %d to %pe which is more user friendly. Fixes: 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ti/netcp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c index 1b2702f74455..c0025bb8a584 100644 --- a/drivers/net/ethernet/ti/netcp_core.c +++ b/drivers/net/ethernet/ti/netcp_core.c @@ -1350,8 +1350,8 @@ int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) tx_pipe->dma_queue = knav_queue_open(name, tx_pipe->dma_queue_id, KNAV_QUEUE_SHARED); if (IS_ERR(tx_pipe->dma_queue)) { - dev_err(dev, "Could not open DMA queue for channel \"%s\": %d\n", - name, ret); + dev_err(dev, "Could not open DMA queue for channel \"%s\": %pe\n", + name, tx_pipe->dma_queue); ret = PTR_ERR(tx_pipe->dma_queue); goto err; } -- 2.30.2