Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2640803pxj; Mon, 31 May 2021 07:11:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvk2DIzTD6u3EQVYuqdNE3ClMO6pRN5DC/BZSMv1aIXd90ifkImDZPur4sc618Hjqb0NVh X-Received: by 2002:a5e:cb45:: with SMTP id h5mr16782984iok.207.1622470290613; Mon, 31 May 2021 07:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622470290; cv=none; d=google.com; s=arc-20160816; b=MNuMWPeDePbjuIoXMpOkbIXmECcgT4DwCil1kOL4uKQFp+tt1FCajTnmVY4HZsnjCT oBzfjITpK6IgfwWQ7cxc7ixQa4NpyPI6Ekf3ux8+R+nshxGtvAhd4p4FLOjZUlCQH7Jc TcP16hNg7vJri6l6KCR3pXqOlN8kGRLv0Hq/GJdcP+RByxcDJLSAEJUTP3hymIdrDOCD uvsetFJsfx0syPQiFfW4JrDsTB/p1VY8ywJ76JkOKwR7IGAuKWw9aG9RLjkz5psntJZT kCIWshc7oY0IOB0Zl+uy2uLqwULhG9xKiPeMJpBQ7gxLiKzkVpnGPzau5+fCg0Sl/XkX VPLw== 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=MjbMRdHnZE1Tyc5plnOOSktOX5jtYZxL6/4o40mqXnA=; b=u6/HJmjsXxo7V+NNJaj8yHvur60KnfoEF2ENgDN1KI1sM2rlX6qWE0XX9zG6DmzAwE Xm6B1oQaCVE66dukFKtm1S+8PRyZokGeOQ2KaeGyVUJytYN9zNRlD87bXrtMyr7veKTM Mzlm2Pi6BuOYjP2B+A23eu0W7C8F/T27bJIY2JJozo3ChYaF+bUMLh9aALf7ZlYLhBj1 wkuJY1sT9UsKiV26YTu3umH/Ny3Tg50IubHhcQsQ0uycKx2bDvuVk47MdGy1AEEHnOuV BhtX33PXUY2SpKlMomdPb5lPCRPqGJa7J7EnleZTkSP5hzDbAx7QMBlv7+GbtBBeqaWg FHsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yI05T77f; 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 a11si1631793jap.60.2021.05.31.07.11.14; Mon, 31 May 2021 07:11:30 -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=yI05T77f; 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 S233512AbhEaOJg (ORCPT + 99 others); Mon, 31 May 2021 10:09:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:50178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbhEaNnk (ORCPT ); Mon, 31 May 2021 09:43:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E46B161494; Mon, 31 May 2021 13:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467742; bh=sKaT5YixtxzQyKlLv9HkAvXC+U1pkCLhdK2nykBu0ek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yI05T77fDIIGqQBX+VgcXUERGHK6CwkHcmJln9M9JzsZ4I0IpFbJ+bwXiaKVyb4GS UTd5fH0IQcKlR/fxHyzG5P8TZIVhBejrsxcDLqfiS828MpXjVqdYPcO92JD7+2yRDA MkEMjdD/XYkCaEBAFTQE9ZXcaKHaIEFEDFmoSBFg= 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 4.14 63/79] net: netcp: Fix an error message Date: Mon, 31 May 2021 15:14:48 +0200 Message-Id: <20210531130638.013062405@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130636.002722319@linuxfoundation.org> References: <20210531130636.002722319@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 437d36289786..67167bc49a3a 100644 --- a/drivers/net/ethernet/ti/netcp_core.c +++ b/drivers/net/ethernet/ti/netcp_core.c @@ -1364,8 +1364,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