提交 256ee435 编写于 作者: J Joe Perches 提交者: David S. Miller

netdevice: Convert printk to pr_info in netif_tx_stop_queue

This allows any caller to be prefaced by any specific
pr_fmt to better identify which device driver is using
this function inappropriately.

Add terminating newline.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b8cec4a4
...@@ -1765,8 +1765,7 @@ static inline void netif_tx_wake_all_queues(struct net_device *dev) ...@@ -1765,8 +1765,7 @@ static inline void netif_tx_wake_all_queues(struct net_device *dev)
static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue) static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue)
{ {
if (WARN_ON(!dev_queue)) { if (WARN_ON(!dev_queue)) {
printk(KERN_INFO "netif_stop_queue() cannot be called before " pr_info("netif_stop_queue() cannot be called before register_netdev()\n");
"register_netdev()");
return; return;
} }
set_bit(__QUEUE_STATE_XOFF, &dev_queue->state); set_bit(__QUEUE_STATE_XOFF, &dev_queue->state);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册