Skip to content

Commit 4749252

Browse files
Ingo MolnarLinus Torvalds
authored andcommitted
printk: add KERN_CONT annotation
printk: add the KERN_CONT annotation (which is empty string but via which checkpatch.pl can notice that the lacking KERN_ level is fine). This useful for multiple calls of hand-crafted printk output done by early debug code or similar. Signed-off-by: Ingo Molnar <[email protected]> Cc: Andy Whitcroft <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1ad6ecf commit 4749252

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/linux/kernel.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ extern const char linux_proc_banner[];
7676
#define KERN_INFO "<6>" /* informational */
7777
#define KERN_DEBUG "<7>" /* debug-level messages */
7878

79+
/*
80+
* Annotation for a "continued" line of log printout (only done after a
81+
* line that had no enclosing \n). Only to be used by core/arch code
82+
* during early bootup (a continued line is not SMP-safe otherwise).
83+
*/
84+
#define KERN_CONT ""
85+
7986
extern int console_printk[];
8087

8188
#define console_loglevel (console_printk[0])

0 commit comments

Comments
 (0)