summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2020-05-30 09:08:27 +0800
committerDavid S. Miller <davem@davemloft.net>2020-05-30 17:41:22 -0700
commit1f4982ef56f794101cae7ec0fa3b7605f78bd25f (patch)
treee844787df310be51cdad291dd2520f43deea611e /drivers
parentbc183dec08f9cb177cf5206a010b7a9e7b22e567 (diff)
downloadlinux-stable-1f4982ef56f794101cae7ec0fa3b7605f78bd25f.tar.gz
linux-stable-1f4982ef56f794101cae7ec0fa3b7605f78bd25f.tar.bz2
linux-stable-1f4982ef56f794101cae7ec0fa3b7605f78bd25f.zip
net: hns3: fix a print format issue in hclge_mac_mdio_config()
Use %d to print int variable 'ret' in hclge_mac_mdio_config(). Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
index 696c5ae922e3..e89820702540 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
@@ -155,7 +155,7 @@ int hclge_mac_mdio_config(struct hclge_dev *hdev)
ret = mdiobus_register(mdio_bus);
if (ret) {
dev_err(mdio_bus->parent,
- "Failed to register MDIO bus ret = %#x\n", ret);
+ "failed to register MDIO bus, ret = %d\n", ret);
return ret;
}