Messages in this thread | | | Date | Thu, 14 Jan 2021 14:25:14 +0100 | From | Petr Mladek <> | Subject | Re: [PATCH] printk: fix kmsg_dump_get_buffer length calulations |
| |
On Wed 2021-01-13 17:50:13, John Ogness wrote: > kmsg_dump_get_buffer() uses @syslog to determine if the syslog > prefix should be written to the buffer. However, when calculating > the maximum number of records that can fit into the buffer, it > always counts the bytes from the syslog prefix. > > Use @syslog when calculating the maximum number of records that can > fit into the buffer.
Another great catch!
> Fixes: e2ae715d66bf ("kmsg - kmsg_dump() use iterator to receive log buffer content") > Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Best Regards, Petr
| |