linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC patch] include/net/cfg80211.h: wiphy_<level> messages use dev_printk
@ 2010-08-19 19:24 Joe Perches
  2010-08-19 19:39 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Perches @ 2010-08-19 19:24 UTC (permalink / raw)
  To: Johannes Berg; +Cc: John W. Linville, linux-wireless, netdev, LKML

Adding device to the wiphy logging messages could be useful.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/cfg80211.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 6a98b1b..61bc007 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2439,7 +2439,7 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
 /* wiphy_printk helpers, similar to dev_printk */
 
 #define wiphy_printk(level, wiphy, format, args...)		\
-	printk(level "%s: " format, wiphy_name(wiphy), ##args)
+	dev_printk(level, &wiphy->dev, "%s: " format, wiphy_name(wiphy), ##args)
 #define wiphy_emerg(wiphy, format, args...)			\
 	wiphy_printk(KERN_EMERG, wiphy, format, ##args)
 #define wiphy_alert(wiphy, format, args...)			\



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-25 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-19 19:24 [RFC patch] include/net/cfg80211.h: wiphy_<level> messages use dev_printk Joe Perches
2010-08-19 19:39 ` Johannes Berg
2010-08-20 22:13   ` [RFC patch (against wireless-next)] " Joe Perches
2010-08-25 18:01     ` John W. Linville
2010-08-25 18:25       ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).