]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: modify a print format of hns3_dbg_queue_map()
authorHao Chen <chenhao288@hisilicon.com>
Mon, 30 Aug 2021 06:06:40 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
The type of tqp_vector->vector_irq is int, so modify its print format
to "%d".

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

index 481179ac932f9be6699fbea6f49fcc916ea0a692..1ec91435d0b48a9a47a22b0fd9d3f254de118782 100644 (file)
@@ -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",
                        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);
                hns3_dbg_fill_content(content, sizeof(content), queue_map_items,
                                      (const char **)result,