提交 242b033e 编写于 作者: G Guangbin Huang 提交者: Xie XiuQi

net: hns3: fix some logs

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The printed data pfc_en and pfc_map need to be displayed in
hexadecimal notation, and the end of printed string needs to
be add "\n", this patch fixes them.

Feature or Bugfix:Bugfix
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 dec78ec3
......@@ -344,7 +344,7 @@ static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc)
if (netif_msg_ifdown(h))
netdev_info(netdev,
"set pfc: pfc_en=%d, pfc_map=%d, num_tc=%d\n",
"set pfc: pfc_en=0x%x, pfc_map=0x%x, num_tc=%u\n",
pfc->pfc_en, pfc_map, hdev->tm_info.num_tc);
hclge_tm_pfc_info_update(hdev);
......
......@@ -3728,7 +3728,7 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
if (hdev->ppu_poison_ras_err)
hdev->ppu_poison_ras_err = false;
dev_info(&hdev->pdev->dev, "received reset event , reset type is %d",
dev_info(&hdev->pdev->dev, "received reset event, reset type is %d\n",
hdev->reset_level);
/* request reset & schedule reset task */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册