Skip to content

Commit 6754614

Browse files
Jie Wangdavem330
authored andcommitted
net: hns3: add more string spaces for dumping packets number of queue info in debugfs
As the width of packets number registers is 32 bits, they needs at most 10 characters for decimal data printing, but now the string spaces is not enough, so this patch fixes it. Fixes: e44c495 ("net: hns3: refactor queue info of debugfs") Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a21dab commit 6754614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static const struct hns3_dbg_item rx_queue_info_items[] = {
462462
{ "TAIL", 2 },
463463
{ "HEAD", 2 },
464464
{ "FBDNUM", 2 },
465-
{ "PKTNUM", 2 },
465+
{ "PKTNUM", 5 },
466466
{ "COPYBREAK", 2 },
467467
{ "RING_EN", 2 },
468468
{ "RX_RING_EN", 2 },
@@ -565,7 +565,7 @@ static const struct hns3_dbg_item tx_queue_info_items[] = {
565565
{ "HEAD", 2 },
566566
{ "FBDNUM", 2 },
567567
{ "OFFSET", 2 },
568-
{ "PKTNUM", 2 },
568+
{ "PKTNUM", 5 },
569569
{ "RING_EN", 2 },
570570
{ "TX_RING_EN", 2 },
571571
{ "BASE_ADDR", 10 },

0 commit comments

Comments
 (0)