diff options
-rw-r--r-- | include/linux/printk.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 86c4b6294713..54419f4f82c2 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h | |||
@@ -252,6 +252,15 @@ extern void dump_stack(void) __cold; | |||
252 | printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | 252 | printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
253 | #define pr_cont_once(fmt, ...) \ | 253 | #define pr_cont_once(fmt, ...) \ |
254 | printk_once(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__) | 254 | printk_once(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__) |
255 | |||
256 | #if defined(DEBUG) | ||
257 | #define pr_devel_once(fmt, ...) \ | ||
258 | printk_once(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ||
259 | #else | ||
260 | #define pr_devel_once(fmt, ...) \ | ||
261 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ||
262 | #endif | ||
263 | |||
255 | /* If you are writing a driver, please use dev_dbg instead */ | 264 | /* If you are writing a driver, please use dev_dbg instead */ |
256 | #if defined(DEBUG) | 265 | #if defined(DEBUG) |
257 | #define pr_debug_once(fmt, ...) \ | 266 | #define pr_debug_once(fmt, ...) \ |
@@ -295,6 +304,15 @@ extern void dump_stack(void) __cold; | |||
295 | #define pr_info_ratelimited(fmt, ...) \ | 304 | #define pr_info_ratelimited(fmt, ...) \ |
296 | printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | 305 | printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
297 | /* no pr_cont_ratelimited, don't do that... */ | 306 | /* no pr_cont_ratelimited, don't do that... */ |
307 | |||
308 | #if defined(DEBUG) | ||
309 | #define pr_devel_ratelimited(fmt, ...) \ | ||
310 | printk_ratelimited(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ||
311 | #else | ||
312 | #define pr_devel_ratelimited(fmt, ...) \ | ||
313 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ||
314 | #endif | ||
315 | |||
298 | /* If you are writing a driver, please use dev_dbg instead */ | 316 | /* If you are writing a driver, please use dev_dbg instead */ |
299 | #if defined(DEBUG) | 317 | #if defined(DEBUG) |
300 | #define pr_debug_ratelimited(fmt, ...) \ | 318 | #define pr_debug_ratelimited(fmt, ...) \ |