From: shenhao shenhao21@huawei.com
driver inclusion category: bugfix bugzilla: NA CVE: NA
-------------------------------------------------
This patch modifies some print messages to clean up code and keep print messages style consistent.
Signed-off-by: Guangbin Huang huangguangbin2@huawei.com Signed-off-by: shenhao shenhao21@huawei.com Reviewed-by: Zhong Zhaohui zhongzhaohui@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 10 +++++----- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c index 33a0425..2b85d08 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c @@ -830,7 +830,7 @@ static void hclge_dbg_dump_qos_buf_cfg(struct hclge_dev *hdev)
err_qos_cmd_send: dev_err(&hdev->pdev->dev, - "dump qos buf cfg fail(0x%x), ret = %d\n", cmd, ret); + "dump qos buf cfg fail(0x%x), ret = %d\n", cmd, ret); }
static void hclge_dbg_dump_mac_table(struct hclge_dev *hdev) @@ -1118,8 +1118,8 @@ static void hclge_dbg_fd_tcam(struct hclge_dev *hdev)
rule_cnt = hclge_dbg_get_rules_location(hdev, rule_locs); if (rule_cnt <= 0) { - dev_err(&hdev->pdev->dev, "get error rule number, ret = %d\n", - rule_cnt); + dev_err(&hdev->pdev->dev, + "failed to get rule number, ret = %d\n", rule_cnt); kfree(rule_locs); return; } @@ -1128,7 +1128,7 @@ static void hclge_dbg_fd_tcam(struct hclge_dev *hdev) ret = hclge_dbg_fd_tcam_read(hdev, 0, true, rule_locs[i]); if (ret) { dev_err(&hdev->pdev->dev, - "get fd tcam key x failed, ret = %d\n", ret); + "failed to get fd tcam key x, ret = %d\n", ret); kfree(rule_locs); return; } @@ -1136,7 +1136,7 @@ static void hclge_dbg_fd_tcam(struct hclge_dev *hdev) ret = hclge_dbg_fd_tcam_read(hdev, 0, false, rule_locs[i]); if (ret) { dev_err(&hdev->pdev->dev, - "get fd tcam key y failed, ret = %d\n", ret); + "failed to get fd tcam key y, ret = %d\n", ret); kfree(rule_locs); return; } diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 3e4b5be..e08ae66 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -11528,7 +11528,7 @@ int hclge_init(void)
hclge_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0, HCLGE_NAME); if (!hclge_wq) { - pr_err("%s: Failed to create workqueue\n", HCLGE_NAME); + pr_err("%s: failed to create workqueue\n", HCLGE_NAME); return -ENOMEM; }
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 0ba9fe6..41a3d42 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -3470,7 +3470,7 @@ static int hclgevf_init(void)
hclgevf_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0, HCLGEVF_NAME); if (!hclgevf_wq) { - pr_err("%s: Failed to create workqueue\n", HCLGEVF_NAME); + pr_err("%s: failed to create workqueue\n", HCLGEVF_NAME); return -ENOMEM; }