From: Guillaume Chazarain Date: Mon, 19 Nov 2007 09:07:00 +0000 (+0100) Subject: ieee80211: Stop net_ratelimit/IEEE80211_DEBUG_DROP log pollution X-Git-Tag: v2.6.24-rc4~90^2~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92468c53cf5af0aea06caec7b7d416c18e973685;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed