aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-08-20 18:13:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-16 15:19:44 -0400
commit9c376639297d3dd82d40e54c9cdca8da9dfc22f1 (patch)
tree4efdf23817f1ab3d90783f0f6335109537f174fd /include/net/cfg80211.h
parent78381c41776572cb642a485219c5d7651f198fbd (diff)
include/net/cfg80211.h: wiphy_<level> messages use dev_printk
The output becomes: [ 41.261941] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h37
1 files changed, 12 insertions, 25 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4c8c727d0cca..a0613ff62c97 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2558,49 +2558,36 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
2558/* wiphy_printk helpers, similar to dev_printk */ 2558/* wiphy_printk helpers, similar to dev_printk */
2559 2559
2560#define wiphy_printk(level, wiphy, format, args...) \ 2560#define wiphy_printk(level, wiphy, format, args...) \
2561 printk(level "%s: " format, wiphy_name(wiphy), ##args) 2561 dev_printk(level, &(wiphy)->dev, format, ##args)
2562#define wiphy_emerg(wiphy, format, args...) \ 2562#define wiphy_emerg(wiphy, format, args...) \
2563 wiphy_printk(KERN_EMERG, wiphy, format, ##args) 2563 dev_emerg(&(wiphy)->dev, format, ##args)
2564#define wiphy_alert(wiphy, format, args...) \ 2564#define wiphy_alert(wiphy, format, args...) \
2565 wiphy_printk(KERN_ALERT, wiphy, format, ##args) 2565 dev_alert(&(wiphy)->dev, format, ##args)
2566#define wiphy_crit(wiphy, format, args...) \ 2566#define wiphy_crit(wiphy, format, args...) \
2567 wiphy_printk(KERN_CRIT, wiphy, format, ##args) 2567 dev_crit(&(wiphy)->dev, format, ##args)
2568#define wiphy_err(wiphy, format, args...) \ 2568#define wiphy_err(wiphy, format, args...) \
2569 wiphy_printk(KERN_ERR, wiphy, format, ##args) 2569 dev_err(&(wiphy)->dev, format, ##args)
2570#define wiphy_warn(wiphy, format, args...) \ 2570#define wiphy_warn(wiphy, format, args...) \
2571 wiphy_printk(KERN_WARNING, wiphy, format, ##args) 2571 dev_warn(&(wiphy)->dev, format, ##args)
2572#define wiphy_notice(wiphy, format, args...) \ 2572#define wiphy_notice(wiphy, format, args...) \
2573 wiphy_printk(KERN_NOTICE, wiphy, format, ##args) 2573 dev_notice(&(wiphy)->dev, format, ##args)
2574#define wiphy_info(wiphy, format, args...) \ 2574#define wiphy_info(wiphy, format, args...) \
2575 wiphy_printk(KERN_INFO, wiphy, format, ##args) 2575 dev_info(&(wiphy)->dev, format, ##args)
2576 2576
2577int wiphy_debug(const struct wiphy *wiphy, const char *format, ...) 2577#define wiphy_debug(wiphy, format, args...) \
2578 __attribute__ ((format (printf, 2, 3)));
2579
2580#if defined(DEBUG)
2581#define wiphy_dbg(wiphy, format, args...) \
2582 wiphy_printk(KERN_DEBUG, wiphy, format, ##args) 2578 wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
2583#elif defined(CONFIG_DYNAMIC_DEBUG) 2579
2584#define wiphy_dbg(wiphy, format, args...) \ 2580#define wiphy_dbg(wiphy, format, args...) \
2585 dynamic_pr_debug("%s: " format, wiphy_name(wiphy), ##args) 2581 dev_dbg(&(wiphy)->dev, format, ##args)
2586#else
2587#define wiphy_dbg(wiphy, format, args...) \
2588({ \
2589 if (0) \
2590 wiphy_printk(KERN_DEBUG, wiphy, format, ##args); \
2591 0; \
2592})
2593#endif
2594 2582
2595#if defined(VERBOSE_DEBUG) 2583#if defined(VERBOSE_DEBUG)
2596#define wiphy_vdbg wiphy_dbg 2584#define wiphy_vdbg wiphy_dbg
2597#else 2585#else
2598
2599#define wiphy_vdbg(wiphy, format, args...) \ 2586#define wiphy_vdbg(wiphy, format, args...) \
2600({ \ 2587({ \
2601 if (0) \ 2588 if (0) \
2602 wiphy_printk(KERN_DEBUG, wiphy, format, ##args); \ 2589 wiphy_printk(KERN_DEBUG, wiphy, format, ##args); \
2603 0; \ 2590 0; \
2604}) 2591})
2605#endif 2592#endif
2606 2593