net-sysfs: add a newline when printing 'tx_timeout' by sysfs

When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to
add a newline for easy reading.

root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout
0root@syzkaller:~#

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Xiongfeng Wang 2020-07-21 15:02:57 +08:00 committed by David S. Miller
parent 015c5d5e6a
commit 9bb5fbea59
1 changed files with 1 additions and 1 deletions

View File

@ -1108,7 +1108,7 @@ static ssize_t tx_timeout_show(struct netdev_queue *queue, char *buf)
trans_timeout = queue->trans_timeout; trans_timeout = queue->trans_timeout;
spin_unlock_irq(&queue->_xmit_lock); spin_unlock_irq(&queue->_xmit_lock);
return sprintf(buf, "%lu", trans_timeout); return sprintf(buf, fmt_ulong, trans_timeout);
} }
static unsigned int get_netdev_queue_index(struct netdev_queue *queue) static unsigned int get_netdev_queue_index(struct netdev_queue *queue)