diff options
author | Joe Perches <joe@perches.com> | 2012-05-13 17:56:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-15 13:45:03 -0400 |
commit | e87cc4728f0e2fb663e592a1141742b1d6c63256 (patch) | |
tree | b8219696d37f0c8d0521d5853560b97fc96dc667 /net/mac80211/rx.c | |
parent | 3a3bfb61e64476ff1e4ac3122cb6dec9c79b795c (diff) |
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>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index d722c40c7eca..8257a09eeed4 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1752,9 +1752,9 @@ ieee80211_deliver_skb(struct ieee80211_rx_data *rx) | |||
1752 | * local net stack and back to the wireless medium | 1752 | * local net stack and back to the wireless medium |
1753 | */ | 1753 | */ |
1754 | xmit_skb = skb_copy(skb, GFP_ATOMIC); | 1754 | xmit_skb = skb_copy(skb, GFP_ATOMIC); |
1755 | if (!xmit_skb && net_ratelimit()) | 1755 | if (!xmit_skb) |
1756 | printk(KERN_DEBUG "%s: failed to clone " | 1756 | net_dbg_ratelimited("%s: failed to clone multicast frame\n", |
1757 | "multicast frame\n", dev->name); | 1757 | dev->name); |
1758 | } else { | 1758 | } else { |
1759 | dsta = sta_info_get(sdata, skb->data); | 1759 | dsta = sta_info_get(sdata, skb->data); |
1760 | if (dsta) { | 1760 | if (dsta) { |
@@ -1957,9 +1957,8 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx) | |||
1957 | 1957 | ||
1958 | fwd_skb = skb_copy(skb, GFP_ATOMIC); | 1958 | fwd_skb = skb_copy(skb, GFP_ATOMIC); |
1959 | if (!fwd_skb) { | 1959 | if (!fwd_skb) { |
1960 | if (net_ratelimit()) | 1960 | net_dbg_ratelimited("%s: failed to clone mesh frame\n", |
1961 | printk(KERN_DEBUG "%s: failed to clone mesh frame\n", | 1961 | sdata->name); |
1962 | sdata->name); | ||
1963 | goto out; | 1962 | goto out; |
1964 | } | 1963 | } |
1965 | 1964 | ||