diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-22 05:29:50 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-24 05:32:29 -0400 |
commit | bdcbd8e0e3ffdad32b14b6373e67bfcf5fd3f002 (patch) | |
tree | b636f2229570dc95edef997272bd0656cf19224d /include | |
parent | d3b2fb53c7f82903880769d406c11c7e619b11a4 (diff) |
mac80211: clean up debugging
There are a few things that make the logging and
debugging in mac80211 less useful than it should
be right now:
* a lot of messages should be pr_info, not pr_debug
* wholesale use of pr_debug makes it require *both*
Kconfig and dynamic configuration
* there are still a lot of ifdefs
* the style is very inconsistent, sometimes the
sdata->name is printed in front
Clean up everything, introducing new macros and
separating out the station MLME debugging into
a new Kconfig symbol.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f11c2f8b00c9..510d852d5222 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -3842,28 +3842,4 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_vif *vif, | |||
3842 | */ | 3842 | */ |
3843 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); | 3843 | int ieee80211_ave_rssi(struct ieee80211_vif *vif); |
3844 | 3844 | ||
3845 | /* Extra debugging macros */ | ||
3846 | |||
3847 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
3848 | #define ht_vdbg(fmt, ...) \ | ||
3849 | pr_debug(fmt, ##__VA_ARGS__) | ||
3850 | #else | ||
3851 | #define ht_vdbg(fmt, ...) \ | ||
3852 | do { \ | ||
3853 | if (0) \ | ||
3854 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
3855 | } while (0) | ||
3856 | #endif | ||
3857 | |||
3858 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | ||
3859 | #define ibss_vdbg(fmt, ...) \ | ||
3860 | pr_debug(fmt, ##__VA_ARGS__) | ||
3861 | #else | ||
3862 | #define ibss_vdbg(fmt, ...) \ | ||
3863 | do { \ | ||
3864 | if (0) \ | ||
3865 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
3866 | } while (0) | ||
3867 | #endif | ||
3868 | |||
3869 | #endif /* MAC80211_H */ | 3845 | #endif /* MAC80211_H */ |