Skip to content
Commit 92468c53 authored by Guillaume Chazarain's avatar Guillaume Chazarain Committed by John W. Linville
Browse files

ieee80211: Stop net_ratelimit/IEEE80211_DEBUG_DROP log pollution



if (net_ratelimit())
	IEEE80211_DEBUG_DROP(...)

can pollute the logs with messages like:

printk: 1 messages suppressed.
printk: 2 messages suppressed.
printk: 7 messages suppressed.

if debugging information is disabled. These messages are printed by
net_ratelimit(). Add a wrapper to net_ratelimit() that takes into account
the log level, so that net_ratelimit() is called only when we really want
to print something.

Signed-off-by: default avatarGuillaume Chazarain <guichaz@yahoo.fr>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4b50e388
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment