From: Yong Zhang Date: Tue, 6 Apr 2010 21:35:02 +0000 (-0700) Subject: kernel.h: fix wrong usage of __ratelimit() X-Git-Tag: v2.6.32.58~29 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3aee4081eee4987bbf2dd00c7267a8b2ea7386a0;p=karo-tx-linux.git kernel.h: fix wrong usage of __ratelimit() commit bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695 upstream. When __ratelimit() returns 1 this means that we can go ahead. Signed-off-by: Yong Zhang Cc: Ingo Molnar Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 1221fe4e3324..f963c1bdcbee 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -417,7 +417,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