|
@@ -251,10 +251,10 @@ extern int printk_delay_msec;
|
|
* Print a one-time message (analogous to WARN_ONCE() et al):
|
|
* Print a one-time message (analogous to WARN_ONCE() et al):
|
|
*/
|
|
*/
|
|
#define printk_once(x...) ({ \
|
|
#define printk_once(x...) ({ \
|
|
- static bool __print_once = true; \
|
|
|
|
|
|
+ static bool __print_once; \
|
|
\
|
|
\
|
|
- if (__print_once) { \
|
|
|
|
- __print_once = false; \
|
|
|
|
|
|
+ if (!__print_once) { \
|
|
|
|
+ __print_once = true; \
|
|
printk(x); \
|
|
printk(x); \
|
|
} \
|
|
} \
|
|
})
|
|
})
|