提交 f7a16f40 编写于 作者: Y Yufeng Mo 提交者: Xie XiuQi

net: hns3: modify the printing format of a MAC address

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch modifies the printing format of a MAC address
in hclge_set_mac_addr() from p% to pM%

Feature or Bugfix:Bugfix
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2137a1eb
......@@ -7360,7 +7360,7 @@ static int hclge_set_mac_addr(struct hnae3_handle *handle, void *p,
is_broadcast_ether_addr(new_addr) ||
is_multicast_ether_addr(new_addr)) {
dev_err(&hdev->pdev->dev,
"Change uc mac err! invalid mac:%p.\n",
"Change uc mac err! invalid mac:%pM.\n",
new_addr);
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册