public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH] netdevice: Convert printk to pr_info in netif_tx_stop_queue
@ 2011-03-01 17:06 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2011-03-01 17:06 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, LKML

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>
---
 include/linux/netdevice.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index ffe56c1..c778992 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);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-01 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 17:06 [net-next PATCH] netdevice: Convert printk to pr_info in netif_tx_stop_queue Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox