]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: fix a print format issue in hclge_mac_mdio_config()
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 30 May 2020 01:08:27 +0000 (09:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:41:22 +0000 (17:41 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c

index 696c5ae922e38ce65b81dcd52808d0a9c4967b32..e898207025406099b206b3a8e9cceac14dce2421 100644 (file)
@@ -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;
        }