Re: [PATCH] printk: fix kmsg_dump_get_buffer length calulations

2021-01-15 Thread Petr Mladek
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. >

Re: [PATCH] printk: fix kmsg_dump_get_buffer length calulations

2021-01-14 Thread Sergey Senozhatsky
On (21/01/13 17:50), 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. > >

Re: [PATCH] printk: fix kmsg_dump_get_buffer length calulations

2021-01-14 Thread Petr Mladek
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. >

[PATCH] printk: fix kmsg_dump_get_buffer length calulations

2021-01-13 Thread John Ogness
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