net: Convert net_ratelimit uses to net_<level>_ratelimited
Standardize the net core ratelimited logging functions. Coalesce formats, align arguments. Change a printk then vprintk sequence to use printf extension %pV. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3a3bfb61e6
commit
e87cc4728f
@@ -260,11 +260,8 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
|
||||
(buf_size > IEEE80211_MAX_AMPDU_BUF)) {
|
||||
status = WLAN_STATUS_INVALID_QOS_PARAM;
|
||||
#ifdef CONFIG_MAC80211_HT_DEBUG
|
||||
if (net_ratelimit())
|
||||
printk(KERN_DEBUG "AddBA Req with bad params from "
|
||||
"%pM on tid %u. policy %d, buffer size %d\n",
|
||||
mgmt->sa, tid, ba_policy,
|
||||
buf_size);
|
||||
net_dbg_ratelimited("AddBA Req with bad params from %pM on tid %u. policy %d, buffer size %d\n",
|
||||
mgmt->sa, tid, ba_policy, buf_size);
|
||||
#endif /* CONFIG_MAC80211_HT_DEBUG */
|
||||
goto end_no_lock;
|
||||
}
|
||||
@@ -281,10 +278,8 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
|
||||
|
||||
if (sta->ampdu_mlme.tid_rx[tid]) {
|
||||
#ifdef CONFIG_MAC80211_HT_DEBUG
|
||||
if (net_ratelimit())
|
||||
printk(KERN_DEBUG "unexpected AddBA Req from "
|
||||
"%pM on tid %u\n",
|
||||
mgmt->sa, tid);
|
||||
net_dbg_ratelimited("unexpected AddBA Req from %pM on tid %u\n",
|
||||
mgmt->sa, tid);
|
||||
#endif /* CONFIG_MAC80211_HT_DEBUG */
|
||||
|
||||
/* delete existing Rx BA session on the same tid */
|
||||
|
Reference in New Issue
Block a user