diff options
-rw-r--r-- | kernel/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 98ca1b76277f..475fc22a2857 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -661,6 +661,7 @@ static char printk_buf[1024]; | |||
661 | asmlinkage int vprintk(const char *fmt, va_list args) | 661 | asmlinkage int vprintk(const char *fmt, va_list args) |
662 | { | 662 | { |
663 | int printed_len = 0; | 663 | int printed_len = 0; |
664 | int current_log_level = default_message_loglevel; | ||
664 | unsigned long flags; | 665 | unsigned long flags; |
665 | int this_cpu; | 666 | int this_cpu; |
666 | char *p; | 667 | char *p; |
@@ -710,7 +711,6 @@ asmlinkage int vprintk(const char *fmt, va_list args) | |||
710 | */ | 711 | */ |
711 | for (p = printk_buf; *p; p++) { | 712 | for (p = printk_buf; *p; p++) { |
712 | if (new_text_line) { | 713 | if (new_text_line) { |
713 | int current_log_level = default_message_loglevel; | ||
714 | /* If a token, set current_log_level and skip over */ | 714 | /* If a token, set current_log_level and skip over */ |
715 | if (p[0] == '<' && p[1] >= '0' && p[1] <= '7' && | 715 | if (p[0] == '<' && p[1] >= '0' && p[1] <= '7' && |
716 | p[2] == '>') { | 716 | p[2] == '>') { |