diff options
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r-- | include/linux/printk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index fea2de37b645..93a231f9835c 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h | |||
@@ -9,7 +9,7 @@ extern const char linux_proc_banner[]; | |||
9 | 9 | ||
10 | static inline int printk_get_level(const char *buffer) | 10 | static inline int printk_get_level(const char *buffer) |
11 | { | 11 | { |
12 | if (buffer[0] == '<' && buffer[1] && buffer[2] == '>') { | 12 | if (buffer[0] == KERN_SOH_ASCII && buffer[1]) { |
13 | switch (buffer[1]) { | 13 | switch (buffer[1]) { |
14 | case '0' ... '7': | 14 | case '0' ... '7': |
15 | case 'd': /* KERN_DEFAULT */ | 15 | case 'd': /* KERN_DEFAULT */ |
@@ -27,7 +27,7 @@ static inline const char *printk_skip_level(const char *buffer) | |||
27 | case '0' ... '7': | 27 | case '0' ... '7': |
28 | case 'd': /* KERN_DEFAULT */ | 28 | case 'd': /* KERN_DEFAULT */ |
29 | case 'c': /* KERN_CONT */ | 29 | case 'c': /* KERN_CONT */ |
30 | return buffer + 3; | 30 | return buffer + 2; |
31 | } | 31 | } |
32 | } | 32 | } |
33 | return buffer; | 33 | return buffer; |