aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-03-01 02:06:12 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-07 15:34:01 -0500
commit256ee435b9a9ee9cca69602fe8046b27ca99fbee (patch)
tree0e90c08094633ec0df36b2ec93004dd3d261837f
parentb8cec4a415e807a2f8679efa89558a040a7003de (diff)
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 <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 8be4056ad251..71563e7b2bfb 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)
1765static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue) 1765static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue)
1766{ 1766{
1767 if (WARN_ON(!dev_queue)) { 1767 if (WARN_ON(!dev_queue)) {
1768 printk(KERN_INFO "netif_stop_queue() cannot be called before " 1768 pr_info("netif_stop_queue() cannot be called before register_netdev()\n");
1769 "register_netdev()");
1770 return; 1769 return;
1771 } 1770 }
1772 set_bit(__QUEUE_STATE_XOFF, &dev_queue->state); 1771 set_bit(__QUEUE_STATE_XOFF, &dev_queue->state);