aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 0a2a19087863..55723afa097b 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -252,10 +252,10 @@ extern int printk_delay_msec;
252 * Print a one-time message (analogous to WARN_ONCE() et al): 252 * Print a one-time message (analogous to WARN_ONCE() et al):
253 */ 253 */
254#define printk_once(x...) ({ \ 254#define printk_once(x...) ({ \
255 static int __print_once = 1; \ 255 static bool __print_once = true; \
256 \ 256 \
257 if (__print_once) { \ 257 if (__print_once) { \
258 __print_once = 0; \ 258 __print_once = false; \
259 printk(x); \ 259 printk(x); \
260 } \ 260 } \
261}) 261})