diff options
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r-- | include/linux/printk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index f086d6c99dbc..37f3a6589c1c 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h | |||
@@ -210,6 +210,12 @@ extern asmlinkage void dump_stack(void) __cold; | |||
210 | #define pr_fmt(fmt) fmt | 210 | #define pr_fmt(fmt) fmt |
211 | #endif | 211 | #endif |
212 | 212 | ||
213 | /* | ||
214 | * These can be used to print at the various log levels. | ||
215 | * All of these will print unconditionally, although note that pr_debug() | ||
216 | * and other debug macros are compiled out unless either DEBUG is defined | ||
217 | * or CONFIG_DYNAMIC_DEBUG is set. | ||
218 | */ | ||
213 | #define pr_emerg(fmt, ...) \ | 219 | #define pr_emerg(fmt, ...) \ |
214 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) | 220 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) |
215 | #define pr_alert(fmt, ...) \ | 221 | #define pr_alert(fmt, ...) \ |