Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp400976ybm; Thu, 28 May 2020 05:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUv01O7ZwhOn29g8ogzTuIUFNMbwRwp/Sb0qcFZnYcdvxEesdcMqbEhA9VhDTKKVWdyXfl X-Received: by 2002:a50:cc85:: with SMTP id q5mr219754edi.62.1590670303182; Thu, 28 May 2020 05:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590670303; cv=none; d=google.com; s=arc-20160816; b=kTjWg8ijpXLyGbMYKa4tsia96p5YqeU4NRbEovQd6PN5aY0lyaNf+Haky7x0uGO2n7 T+PERHMDufT1lVlY/g4iYtERR88FcPz+CdEjZfwcpSm6PegcKG+RHBi+zUSU2b844Jgo 0UHp3kolLxVVI6dh1ziRQ0ZHvNwuxA/1tptz5Y8ZpTpQmAnKmTj0XZE7IFq99G2pSKCX C+/qHQd3yowi/eC0uQRRpehQODQM+kFjCswDU6yXVyVcttJePZwXdzxje1dRvaug5gUh W55smXR8JgGTFYPPpc3YYItyP8rl1zp6q+4Ut2zfFKCtJUzBLMfThjFsMS+PWl/WGWCM ZyJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=/1YUTdAvDjz2dv7LvMzOxfDk3pjW5T9cNcCY4Pl3sZY=; b=gRDuTed9hUTlFeCG++kLXA5MXENErENo6ASlWdASx+kBwYHd2uQGlSNuNWLNlBGZZ9 bRc8d3/Vv+6/cxqFOdCCnVYI3H0bjsle1stBK99u9vs8xucCqgMsgJXk+J4sg5tMmh52 QWfPhEijqV7DYkzGaq4xQ9s2esVVF6COf13/9NyqVPlBiMb9rEkg8+FtrX2+xWh2IPC1 AtqBrhNBqySHTKLQq+OaB4izDhsnj4U70Gjz/AB13IYfwclG3uZE5FZ58K/p8u/YzyYp 8w/kNM6KWxU+HhV/JdA4jjXjtMEv6k8W/YL8n11uRCQwNhq8aaz1rGWFTz8Ox5HC6A+V yhrQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si3571393ejy.734.2020.05.28.05.51.20; Thu, 28 May 2020 05:51:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390036AbgE1Msv (ORCPT + 99 others); Thu, 28 May 2020 08:48:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5370 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389971AbgE1MsZ (ORCPT ); Thu, 28 May 2020 08:48:25 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 47A3B2A2028A432ABA86; Thu, 28 May 2020 20:46:48 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 20:46:39 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 11/11] net: hns3: print out speed info when parsing speed fails Date: Thu, 28 May 2020 20:45:12 +0800 Message-ID: <1590669912-21867-12-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> References: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When calling hclge_parse_speed() fails, printing out the speed is helpful for debugging. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 87473f7..21a73b0 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -1387,7 +1387,8 @@ static int hclge_configure(struct hclge_dev *hdev) ret = hclge_parse_speed(cfg.default_speed, &hdev->hw.mac.speed); if (ret) { - dev_err(&hdev->pdev->dev, "Get wrong speed ret=%d.\n", ret); + dev_err(&hdev->pdev->dev, "failed to parse speed %u, ret = %d\n", + cfg.default_speed, ret); return ret; } -- 2.7.4