diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 14:20:32 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-05 15:32:10 -0400 |
commit | 499f42bb03a9bd8a23f73e7c3886f70f52e7edc5 (patch) | |
tree | f0a1ee12e47d46f58094fded70bd7ebf3b49b4c8 /net/mac80211/sta_info.c | |
parent | d63e9ae3b12fd0c6a3795c9b08de6b476f80b8c3 (diff) | |
download | op-kernel-dev-499f42bb03a9bd8a23f73e7c3886f70f52e7edc5.zip op-kernel-dev-499f42bb03a9bd8a23f73e7c3886f70f52e7edc5.tar.gz |
net: mac80211: Add and use ibss_vdbg debugging macro
Simplify the use of #ifdef CONFIG_MAC80211_IBSS_DEBUG/#endif
by adding a logging macro to encapsulate the test.
Convert the appropriate uses too.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 4be5098..0a70f79 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -887,10 +887,8 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, continue; if (time_after(jiffies, sta->last_rx + exp_time)) { -#ifdef CONFIG_MAC80211_IBSS_DEBUG - pr_debug("%s: expiring inactive STA %pM\n", - sdata->name, sta->sta.addr); -#endif + ibss_vdbg("%s: expiring inactive STA %pM\n", + sdata->name, sta->sta.addr); WARN_ON(__sta_info_destroy(sta)); } } |