Commit 3aee4081 authored by Yong Zhang's avatar Yong Zhang Committed by Greg Kroah-Hartman

kernel.h: fix wrong usage of __ratelimit()

commit bb1dc0ba upstream.

When __ratelimit() returns 1 this means that we can go ahead.
Signed-off-by: default avatarYong Zhang <yong.zhang@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d5101f5e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment