netdevice: Convert printk to pr_info in netif_tx_stop_queue
authorJoe Perches <joe@perches.com>
Tue, 1 Mar 2011 07:06:12 +0000 (07:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2011 20:34:01 +0000 (12:34 -0800)
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: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 8be4056ad251022d393309250298fb9de380d798..71563e7b2bfba011ab62bc43b5cb90ac841263dd 100644 (file)
@@ -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)
 {
        if (WARN_ON(!dev_queue)) {
-               printk(KERN_INFO "netif_stop_queue() cannot be called before "
-                      "register_netdev()");
+               pr_info("netif_stop_queue() cannot be called before register_netdev()\n");
                return;
        }
        set_bit(__QUEUE_STATE_XOFF, &dev_queue->state);