printk: remove the now unnecessary "C" annotation for KERN_CONT
authorJoe Perches <joe@perches.com>
Mon, 30 Jul 2012 21:40:21 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:14 +0000 (17:25 -0700)
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 <joe@perches.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kern_levels.h
include/linux/printk.h

index 8c719a9..866caaa 100644 (file)
@@ -20,6 +20,6 @@
  * 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).
  */
-#define KERN_CONT      KERN_SOH "c"
+#define KERN_CONT      ""
 
 #endif
index 93a231f..9afc01e 100644 (file)
@@ -13,7 +13,6 @@ static inline int printk_get_level(const char *buffer)
                switch (buffer[1]) {
                case '0' ... '7':
                case 'd':       /* KERN_DEFAULT */
-               case 'c':       /* KERN_CONT */
                        return buffer[1];
                }
        }
@@ -26,7 +25,6 @@ static inline const char *printk_skip_level(const char *buffer)
                switch (buffer[1]) {
                case '0' ... '7':
                case 'd':       /* KERN_DEFAULT */
-               case 'c':       /* KERN_CONT */
                        return buffer + 2;
                }
        }