Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2682277pxj; Mon, 31 May 2021 08:09:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJGBDezd3oq6IS/CC18rFjG6d/At2vKdvT0CYKTpw0QIPH/SFzVCITRbxlCp8m4VYIT90v X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr5095752ejb.452.1622473772979; Mon, 31 May 2021 08:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473772; cv=none; d=google.com; s=arc-20160816; b=nLLclqrIaizdptfdPfomGwN3EFkHwgNVE+1rSf1Mj8gdfgxp5UXXAOQWkH6lj7Oonb omY2mtJXtigTiy7JTH/RJrK88wyx5MT6xv/FAbLqxy6fhQesxPMEEVQytuJp1tnh21ib OIkBpauCyuwLcAXTUDmi/S9v5oDDwftWRZGUHBF45mZOmagSHiUOxFqRFoSz2ki1x+k6 1IsKiTJHUM5vWVq2tREbrTEs570sq+kAZ+4oSSgnkcVz0hc7nMUV1HwuRsMOUB/ibRh6 8AbMMg6DqXPwfWidKJbZC7I21Sg4kaOLNfFJs3U64WvqqAeqHogvZ9sYOaGZ35AHmrDy E/eQ== 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=fPPbHCgdGLRSQ/7WKSIkk5+z8AV5prVYQ37jtjIJ4Cw=; b=Oh0OFbINr3YbLFoMOHq5TGeijHAWJggXil1afo/lpfycVYrUPKxhKKw652JYW+zxaO AV49V3pqN0IuKR9x1nSFhz9L4FPtD7L5e5l8KLII6eDvXDaHkMEbM/6atcfWPooYJRZ/ rtClVTCnPg2D+q00/whXFnTLGIPIM4I6duUCSwzQ0VizJ626qQ1n5qEG+96nt5pYghC7 IlKu9DhloFPyaU9Orc02Q0Atmag41Gx6Qutx2qrcVFmUeiU2l7wh6AoU602zl9se0Vlj o7nrvEjCHXNKVzU+NelW7lNwrZwj+bqF63mFmk+3IYMZd9mvBdsKmX6bHhsfYkjGhUoC fYrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XI2j3eHr; 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 e7si4819649edk.213.2021.05.31.08.09.07; Mon, 31 May 2021 08:09:32 -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=XI2j3eHr; 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 S231960AbhEaPIp (ORCPT + 99 others); Mon, 31 May 2021 11:08:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233488AbhEaOJe (ORCPT ); Mon, 31 May 2021 10:09:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C45C61457; Mon, 31 May 2021 13:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468416; bh=SKYaOhmre3/ukocqr42X05M8Nh4aw3JOi0HHOFC09oQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XI2j3eHrWrwfeWy9MhLJKmsyw49rzPzhPHFclXRIxJfOdYtFrwJ8EqsYTJ0M0SSk6 U3OMkOiV2h/AQR1FzFbJL6Lq9qwRXT+TXW8GxEEXj8GGpe91lbMeJiJw2GLqbUE/YW f9oSTuZnopDWERcGWlqtLhqq2WFZjJipKKOg5wMk= 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.10 189/252] net: netcp: Fix an error message Date: Mon, 31 May 2021 15:14:14 +0200 Message-Id: <20210531130704.434514681@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 d7a144b4a09f..dc50e948195d 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