Search Linux Wireless

[RFC patch] include/net/cfg80211.h: wiphy_<level> messages use dev_printk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adding device to the wiphy logging messages could be useful.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
 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...)			\


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux