mirror of https://gitee.com/openkylin/linux.git
net: hns3: print out speed info when parsing speed fails
When calling hclge_parse_speed() fails, printing out the speed is helpful for debugging. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7c6643cac0
commit
ead38a8537
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue