[PATCH] printk: fix lost last line in kmsg dump

2017-04-19 Thread Rabin Vincent
From: Rabin Vincent kmsg_dump_get_buffer() selects the youngest log messages which fit into the provided buffer. When that function determines the correct start index, by looping and calling msg_print_text() with a NULL buffer, it allows the youngest log messages to completely

[PATCH] printk: fix lost last line in kmsg dump

2017-04-19 Thread Rabin Vincent
From: Rabin Vincent kmsg_dump_get_buffer() selects the youngest log messages which fit into the provided buffer. When that function determines the correct start index, by looping and calling msg_print_text() with a NULL buffer, it allows the youngest log messages to completely fill the provided