introduce pr_cont macro v2
PATCH 1/1 introduce pr_cont macro v2
We cover all log-levels by pr_... macros exceptKERN_CONT one. Add it for convenience.
Signed-off-by Cyrill Gorcunov <[email protected]>
---
I think start printing with some pr_... macro
and continue with printk(KERN_CONT ...) look
not that clear -- better to continue with
same pr_... slogan.
It's written in same form as other (same aimed) macros have, ie 'fmt' and ##__VA_ARGS__ saved.
include/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/kernel.h +2 -0
@@ -370,6 +370,8 @@ static inline char *pack_hex_byte(char * printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) #define pr_info(fmt, ...) \ printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) +#define pr_cont(fmt, ...) \ + printk(KERN_CONT fmt, ##__VA_ARGS__) /* If you are writing a driver, please use dev_dbg instead */ #if defined(DEBUG)