Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp445992ybm; Thu, 28 May 2020 06:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjMF9cQaKcuWRKJloU+pMJBnzNNP/K+2cvmcEYd8oQvazivuUaNHzeHueysTrkvz7Aa/Cf X-Received: by 2002:aa7:d39a:: with SMTP id x26mr3139235edq.207.1590674136273; Thu, 28 May 2020 06:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590674136; cv=none; d=google.com; s=arc-20160816; b=QKLwRuEf51HzuhyKE0dp18/Rhr/TA1sXjOkh5tKsTCI+4tkKJa4dr4EwvzQq1qyQa0 4uj4FJyKG2xDhOFElZH/tE+zQKtF011ZvzRj822r3QbCCej2qB3UE7yRx2OIclfYYlgX mB6/YFFOfUGeP2HEGszBcBhwNQ5nDJnrmjqvqGHee1l08pUG6fD7wJiA3dILVNOdM0JZ HKHLe/EU62cyHjlP0sh642m7Kpj9nS4RWa5jVWYOKYwe3hfPLUAswevPPgOsoitJsZ8d EcAVsBW+zvOVOcwQsbtMszHzYytZJjX7GjRPAA/7KKe2BsAjpa7DzL7J3PxvEB5b7NF6 8nzw== 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=6IHB4CwUB7NhahIw3KGDoJtNmhA264KtT7wHZWI0yJ4=; b=s87AzcZpuME+ASzlrBSknjKXj1te9S0J0qCXogbTUeTaieW55zGHHXyEfkrEfMO6Gz /OtoEc50NSj6BNRIIvJbG64Q88h30+E8GEiSiJzNKJb+87fFetD7imrbjwAoAg82lkFG 3pkHKlQBPvXXK+MsUYSzOsPMhuEPdsr2mduuRmkrJNbe5ggkpnbGhWpk9+8pB/N0D43h juDZwx0cpgrsiHRuXu7ZFOIaCcwUaxsHT5w7k7SBotmnZmoCS/zDICAfg5Um3Tk76HzW uRs45Gr+g6gGaBCv8jYsmrotVthMYWmY9MBpRp4q0htuR+3SbPurmkmsxhhxF/I0ZSpw aJWg== 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 r8si3761917edi.84.2020.05.28.06.55.12; Thu, 28 May 2020 06:55:36 -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 S2390764AbgE1Nwo (ORCPT + 99 others); Thu, 28 May 2020 09:52:44 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5379 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390612AbgE1NvF (ORCPT ); Thu, 28 May 2020 09:51:05 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4D979DEE3C8A0E03DD1D; Thu, 28 May 2020 21:50:59 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 21:50:52 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 12/12] net: hns3: print out speed info when parsing speed fails Date: Thu, 28 May 2020 21:48:19 +0800 Message-ID: <1590673699-63819-13-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590673699-63819-1-git-send-email-tanhuazhong@huawei.com> References: <1590673699-63819-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 1e4f285..96bfad5 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