Re: [PATCH] printk: kmsg_dump: revert msg_print_text() workaround

2021-01-14 Thread Petr Mladek
On Thu 2021-01-14 10:11:11, John Ogness wrote: > The old msg_print_text() function only filled up to size-1 bytes of > the buffer. A workaround for this quirky behavior was implemented > with commit c9dccacfccc7 ("printk: Do not lose last line in kmsg > buffer dump"). > > However, with commit 896f

[PATCH] printk: kmsg_dump: revert msg_print_text() workaround

2021-01-14 Thread John Ogness
The old msg_print_text() function only filled up to size-1 bytes of the buffer. A workaround for this quirky behavior was implemented with commit c9dccacfccc7 ("printk: Do not lose last line in kmsg buffer dump"). However, with commit 896fbe20b4e2 ("printk: use the lockless ringbuffer"), msg_print