Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2625336pxj; Mon, 31 May 2021 06:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw22k3gNNKrwYPe+eR8GOAsaoAOgmQR5HktV9LGMM174D1hAXr/mh0W4P2kmwLWZw12AlwX X-Received: by 2002:a92:2a0a:: with SMTP id r10mr17790405ile.274.1622469106136; Mon, 31 May 2021 06:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622469106; cv=none; d=google.com; s=arc-20160816; b=JxLsbIpCzl1qNmio4mrd5pBL2jdwbt4hFgQsUXEn5w+7lAZalckuerMFEXCPqhGCx9 BFdz0kPRfPI+552Z1WD8QmchcmwRvnzDTrDbKHWuSArqm9nTuwO1dyb9QtUdZo8s+BpV 8nIk0YHnv44aZA6vWMC/RPzojhSy0fYzLt/EcRFvVBNTRRsz/jYgGF7uYYbdk6xG379y D4n0BBY+pKoXEEboB8Ux9l4Y/3zdBx+mcXcl2eMCv83qcVqqqX29wQRkL5IKp3BVpq0J dooOmVh5DxdJpfAzD6IPG89dVIwWZ/SwcRc3tc+7NO9Mssgvby9vg/CNlc2ZZ8Tcx+fN 6EIQ== 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=oDMfA21flD8l3IvgOPhvt/XuSySlir2mXqelI2cP4hk=; b=ni9wAEISfUwz0meLFEM+dCNfZxpZEOyFoDZaS+NyzTqNgyU3sX/sQBR3lorOiW9fRo vVxbrE3pVVlSQeplYs3/Z5QgGwtR2YV8NSDcsNbMRBbaNEBMOTKmpjQRIPeI0s1pW9X2 MmF+0R1QHF6BsaZ6Lba8+cMEtJ01QnudNyEBum3CtcL1mMSJJmo9CdWG7XkMcsIaH95u vCpRioP8UgI4SAiCuMqgV/Od0T4hvwWI0li3W4uTG/wOG2AkWskXjt+pZyiDLABseApq GvNCnBhXyJwDIFo6WX+UsftghXiwCQEaOz5Dc9BH5vtWteqsVuXJtisYiKvJxuYayUhU VZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qu2aAOct; 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 e25si12028378iol.49.2021.05.31.06.51.33; Mon, 31 May 2021 06:51:46 -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=Qu2aAOct; 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 S232102AbhEaNwI (ORCPT + 99 others); Mon, 31 May 2021 09:52:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:39104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbhEaNfX (ORCPT ); Mon, 31 May 2021 09:35:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7619061443; Mon, 31 May 2021 13:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467521; bh=VaHsGVAAr6vLgkWttE6HgBzplm2+lNdQFFAlW27DjDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qu2aAOct9Ezq8Ys/JQFkJZ3W2+DnUoRPW20ZWKxKiFioQTiOUWEgFNEpPsSzYmy9y xf4O/CqCVabfo1tOAefCjqdwFZrtOnXHsdESf57LLWYPXePwU1BUmrUHdIZryCajHZ iNWdPBqQ/FMAclYDt6LIQ7hqB5C64nW9xVOQyqTU= 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.19 096/116] net: netcp: Fix an error message Date: Mon, 31 May 2021 15:14:32 +0200 Message-Id: <20210531130643.385993582@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130640.131924542@linuxfoundation.org> References: <20210531130640.131924542@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 a1d335a3c5e4..60d411bbbdc6 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