From: Joe Perches Date: Tue, 1 Mar 2011 07:06:12 +0000 (+0000) Subject: netdevice: Convert printk to pr_info in netif_tx_stop_queue X-Git-Tag: v2.6.39-rc1~468^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=256ee435b9a9ee9cca69602fe8046b27ca99fbee;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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: Joe Perches Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 8be4056..71563e7 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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);