From: Martin Peschke This fixes the following miscalculation that has been introduced by my statistics-infrastructure-prerequisite-timestamp.patch: print_len loses 3 in the 'got log level'-case due to a surplus substraction. It also loses 3 in the other case due to adding a log level substring that is not entered in the books. Signed-off-by: Martin Peschke Signed-off-by: Andrew Morton --- kernel/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/printk.c~statistics-infrastructure-prerequisite-timestamp-fix kernel/printk.c --- a/kernel/printk.c~statistics-infrastructure-prerequisite-timestamp-fix +++ a/kernel/printk.c @@ -537,9 +537,9 @@ asmlinkage int vprintk(const char *fmt, p[1] <= '7' && p[2] == '>') { loglev_char = p[1]; p += 3; - printed_len -= 3; } else { loglev_char = default_message_loglevel + '0'; + printed_len += 3; } emit_log_char('<'); emit_log_char(loglev_char); _