net: hns3: use dev_info() instead of pr_info()
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 29 Jul 2019 02:53:31 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 15:23:41 +0000 (08:23 -0700)
dev_info() is more appropriate for printing messages when driver
initialization done, so switch to dev_info().

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 30a70743de89fc3a8383fbafcb163df18d72c68b..4138780fca3920fdfaae779e24e955485cb152fa 100644 (file)
@@ -8862,7 +8862,9 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev)
        hclge_state_init(hdev);
        hdev->last_reset_time = jiffies;
 
-       pr_info("%s driver initialization finished.\n", HCLGE_DRIVER_NAME);
+       dev_info(&hdev->pdev->dev, "%s driver initialization finished.\n",
+                HCLGE_DRIVER_NAME);
+
        return 0;
 
 err_mdiobus_unreg:
index a13a0e101c3bfc96d2d2175edf26defa0ea173e6..ae0e6a69d54bfc4dc7306d4edfa0f96c321d52cd 100644 (file)
@@ -2695,7 +2695,8 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev)
        }
 
        hdev->last_reset_time = jiffies;
-       pr_info("finished initializing %s driver\n", HCLGEVF_DRIVER_NAME);
+       dev_info(&hdev->pdev->dev, "finished initializing %s driver\n",
+                HCLGEVF_DRIVER_NAME);
 
        return 0;