diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index d9e75ec7def5..883cd44ff765 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -377,6 +377,15 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
| 377 | #define pr_cont(fmt, ...) \ | 377 | #define pr_cont(fmt, ...) \ |
| 378 | printk(KERN_CONT fmt, ##__VA_ARGS__) | 378 | printk(KERN_CONT fmt, ##__VA_ARGS__) |
| 379 | 379 | ||
| 380 | /* pr_devel() should produce zero code unless DEBUG is defined */ | ||
| 381 | #ifdef DEBUG | ||
| 382 | #define pr_devel(fmt, ...) \ | ||
| 383 | printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ||
| 384 | #else | ||
| 385 | #define pr_devel(fmt, ...) \ | ||
| 386 | ({ if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); 0; }) | ||
| 387 | #endif | ||
| 388 | |||
| 380 | /* If you are writing a driver, please use dev_dbg instead */ | 389 | /* If you are writing a driver, please use dev_dbg instead */ |
| 381 | #if defined(DEBUG) | 390 | #if defined(DEBUG) |
| 382 | #define pr_debug(fmt, ...) \ | 391 | #define pr_debug(fmt, ...) \ |
