]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ieee80211: Stop net_ratelimit/IEEE80211_DEBUG_DROP log pollution
authorGuillaume Chazarain <guichaz@yahoo.fr>
Mon, 19 Nov 2007 09:07:00 +0000 (10:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Nov 2007 21:43:17 +0000 (16:43 -0500)
commit92468c53cf5af0aea06caec7b7d416c18e973685
treef030ad479614a0832585d549d51d4ff8fb3f264f
parent4b50e388f88ab08f6c2f54f0a33e696ff2de269f
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: Guillaume Chazarain <guichaz@yahoo.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/ieee80211.h
net/ieee80211/ieee80211_crypt_ccmp.c
net/ieee80211/ieee80211_crypt_tkip.c