[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1282245848.6724.261.camel@Joe-Laptop>
Date: Thu, 19 Aug 2010 12:24:08 -0700
From: Joe Perches <joe@...ches.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: "John W. Linville" <linville@...driver.com>,
linux-wireless@...r.kernel.org, netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [RFC patch] include/net/cfg80211.h: wiphy_<level> messages use
dev_printk
Adding device to the wiphy logging messages could be useful.
Signed-off-by: Joe Perches <joe@...ches.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...) \
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists