aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYong Zhang <yong.zhang@windriver.com>2010-04-06 14:35:02 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-07 08:38:04 -0700
commitbb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695 (patch)
treee3389ae1a09bba9cd84d6981a7e49edb449133bb /include
parent2a7268abc48c8009b284bd88605d14fcb65772ec (diff)
downloadmrst-s0i3-test-bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695.tar.gz
mrst-s0i3-test-bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695.tar.xz
mrst-s0i3-test-bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695.zip
kernel.h: fix wrong usage of __ratelimit()
When __ratelimit() returns 1 this means that we can go ahead. Signed-off-by: Yong Zhang <yong.zhang@windriver.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 7f070746336..9365227dbaf 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -426,7 +426,7 @@ static inline char *pack_hex_byte(char *buf, u8 byte)
.burst = DEFAULT_RATELIMIT_BURST, \
}; \
\
- if (!__ratelimit(&_rs)) \
+ if (__ratelimit(&_rs)) \
printk(fmt, ##__VA_ARGS__); \
})
#else