Skip to content

Commit 61e99ab

Browse files
JoePerchestorvalds
authored andcommitted
printk: remove the now unnecessary "C" annotation for KERN_CONT
Now that all KERN_<LEVEL> uses are prefixed with ASCII SOH, there is no need for a KERN_CONT. Keep it backward compatible by adding #define KERN_CONT "" Reduces kernel image size a thousand bytes. Signed-off-by: Joe Perches <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 088a52a commit 61e99ab

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/linux/kern_levels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
* line that had no enclosing \n). Only to be used by core/arch code
2121
* during early bootup (a continued line is not SMP-safe otherwise).
2222
*/
23-
#define KERN_CONT KERN_SOH "c"
23+
#define KERN_CONT ""
2424

2525
#endif

include/linux/printk.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ static inline int printk_get_level(const char *buffer)
1313
switch (buffer[1]) {
1414
case '0' ... '7':
1515
case 'd': /* KERN_DEFAULT */
16-
case 'c': /* KERN_CONT */
1716
return buffer[1];
1817
}
1918
}
@@ -26,7 +25,6 @@ static inline const char *printk_skip_level(const char *buffer)
2625
switch (buffer[1]) {
2726
case '0' ... '7':
2827
case 'd': /* KERN_DEFAULT */
29-
case 'c': /* KERN_CONT */
3028
return buffer + 2;
3129
}
3230
}

0 commit comments

Comments
 (0)