diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 17:20:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-05 15:27:16 -0400 |
commit | f0d232080fa5d040aaf73a39d127b003cdd2d0ae (patch) | |
tree | 7c6ee7c422152e2627040e466dc2d709a27f0469 /net/mac80211/sta_info.c | |
parent | 6efb71b01e37296eb0bcd6c63f7fa3b2d996d589 (diff) |
net: mac80211: Convert printk(KERN_DEBUG to pr_debug
Standardize the debugging to be able to use dynamic_debug.
Coalesce formats, align arguments.
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 | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index f5b1638fbf80..4be509807607 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -333,9 +333,8 @@ static int sta_info_insert_drv_state(struct ieee80211_local *local, | |||
333 | } | 333 | } |
334 | 334 | ||
335 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { | 335 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) { |
336 | printk(KERN_DEBUG | 336 | pr_debug("%s: failed to move IBSS STA %pM to state %d (%d) - keeping it anyway\n", |
337 | "%s: failed to move IBSS STA %pM to state %d (%d) - keeping it anyway.\n", | 337 | sdata->name, sta->sta.addr, state + 1, err); |
338 | sdata->name, sta->sta.addr, state + 1, err); | ||
339 | err = 0; | 338 | err = 0; |
340 | } | 339 | } |
341 | 340 | ||
@@ -619,8 +618,7 @@ static bool sta_info_cleanup_expire_buffered_ac(struct ieee80211_local *local, | |||
619 | 618 | ||
620 | local->total_ps_buffered--; | 619 | local->total_ps_buffered--; |
621 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 620 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
622 | printk(KERN_DEBUG "Buffered frame expired (STA %pM)\n", | 621 | pr_debug("Buffered frame expired (STA %pM)\n", sta->sta.addr); |
623 | sta->sta.addr); | ||
624 | #endif | 622 | #endif |
625 | dev_kfree_skb(skb); | 623 | dev_kfree_skb(skb); |
626 | } | 624 | } |
@@ -890,8 +888,8 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, | |||
890 | 888 | ||
891 | if (time_after(jiffies, sta->last_rx + exp_time)) { | 889 | if (time_after(jiffies, sta->last_rx + exp_time)) { |
892 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 890 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
893 | printk(KERN_DEBUG "%s: expiring inactive STA %pM\n", | 891 | pr_debug("%s: expiring inactive STA %pM\n", |
894 | sdata->name, sta->sta.addr); | 892 | sdata->name, sta->sta.addr); |
895 | #endif | 893 | #endif |
896 | WARN_ON(__sta_info_destroy(sta)); | 894 | WARN_ON(__sta_info_destroy(sta)); |
897 | } | 895 | } |
@@ -991,9 +989,8 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta) | |||
991 | sta_info_recalc_tim(sta); | 989 | sta_info_recalc_tim(sta); |
992 | 990 | ||
993 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG | 991 | #ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG |
994 | printk(KERN_DEBUG "%s: STA %pM aid %d sending %d filtered/%d PS frames " | 992 | pr_debug("%s: STA %pM aid %d sending %d filtered/%d PS frames since STA not sleeping anymore\n", |
995 | "since STA not sleeping anymore\n", sdata->name, | 993 | sdata->name, sta->sta.addr, sta->sta.aid, filtered, buffered); |
996 | sta->sta.addr, sta->sta.aid, filtered, buffered); | ||
997 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 994 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
998 | } | 995 | } |
999 | 996 | ||
@@ -1385,8 +1382,8 @@ int sta_info_move_state(struct sta_info *sta, | |||
1385 | } | 1382 | } |
1386 | 1383 | ||
1387 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1384 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
1388 | printk(KERN_DEBUG "%s: moving STA %pM to state %d\n", | 1385 | pr_debug("%s: moving STA %pM to state %d\n", |
1389 | sta->sdata->name, sta->sta.addr, new_state); | 1386 | sta->sdata->name, sta->sta.addr, new_state); |
1390 | #endif | 1387 | #endif |
1391 | 1388 | ||
1392 | /* | 1389 | /* |