提交 35863dca 编写于 作者: H Hao Chen 提交者: Zheng Zengkai

net: hns3: modify a print format of hns3_dbg_queue_map()

mainline inclusion
from mainline-v5.15-rc1
commit 5aea2da5
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4BY3P
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5aea2da5930392055afc82e2fc02e706a022ba43

----------------------------------------------------------------------

The type of tqp_vector->vector_irq is int, so modify its print format
to "%d".
Signed-off-by: NHao Chen <chenhao288@hisilicon.com>
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Reviewed-by: NYongxin Li <liyongxin1@huawei.com>
Signed-off-by: NJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 7af9214d
...@@ -695,7 +695,7 @@ static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len) ...@@ -695,7 +695,7 @@ static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len)
sprintf(result[j++], "%u", i); sprintf(result[j++], "%u", i);
sprintf(result[j++], "%u", sprintf(result[j++], "%u",
h->ae_algo->ops->get_global_queue_id(h, i)); h->ae_algo->ops->get_global_queue_id(h, i));
sprintf(result[j++], "%u", sprintf(result[j++], "%d",
priv->ring[i].tqp_vector->vector_irq); priv->ring[i].tqp_vector->vector_irq);
hns3_dbg_fill_content(content, sizeof(content), queue_map_items, hns3_dbg_fill_content(content, sizeof(content), queue_map_items,
(const char **)result, (const char **)result,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册