Commit 61e99ab8 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

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: default avatarJoe Perches <joe@perches.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 088a52aa
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
* line that had no enclosing \n). Only to be used by core/arch code * line that had no enclosing \n). Only to be used by core/arch code
* during early bootup (a continued line is not SMP-safe otherwise). * during early bootup (a continued line is not SMP-safe otherwise).
*/ */
#define KERN_CONT KERN_SOH "c" #define KERN_CONT ""
#endif #endif
...@@ -13,7 +13,6 @@ static inline int printk_get_level(const char *buffer) ...@@ -13,7 +13,6 @@ static inline int printk_get_level(const char *buffer)
switch (buffer[1]) { switch (buffer[1]) {
case '0' ... '7': case '0' ... '7':
case 'd': /* KERN_DEFAULT */ case 'd': /* KERN_DEFAULT */
case 'c': /* KERN_CONT */
return buffer[1]; return buffer[1];
} }
} }
...@@ -26,7 +25,6 @@ static inline const char *printk_skip_level(const char *buffer) ...@@ -26,7 +25,6 @@ static inline const char *printk_skip_level(const char *buffer)
switch (buffer[1]) { switch (buffer[1]) {
case '0' ... '7': case '0' ... '7':
case 'd': /* KERN_DEFAULT */ case 'd': /* KERN_DEFAULT */
case 'c': /* KERN_CONT */
return buffer + 2; return buffer + 2;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment