Messages in this thread Patch in this message | | | From | Yong Zhang <> | Subject | [PATCH 2/3] kernel.h: fix wrong usage of __ratelimit() | Date | Wed, 17 Mar 2010 10:58:43 +0800 |
| |
__ratelimit() rerurn 1 means we can go ahead.
Signed-off-by: Yong Zhang <yong.zhang@windriver.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> --- include/linux/kernel.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 7f07074..9365227 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 -- 1.6.3.3
| |