Re: [RFC][PATCH 3/3] printk: do not preliminary split up cont buffer

2018-10-09 Thread Sergey Senozhatsky
On (10/09/18 10:42), Petr Mladek wrote: > On Tue 2018-10-02 11:38:36, Sergey Senozhatsky wrote: > > We have a proper 'overflow' check which tells us that we need to > > split up existing cont buffer in separate records: > > > > if (cont.len + len > sizeof(cont.buf)) > > cont_flush(

Re: [RFC][PATCH 3/3] printk: do not preliminary split up cont buffer

2018-10-09 Thread Petr Mladek
On Tue 2018-10-02 11:38:36, Sergey Senozhatsky wrote: > We have a proper 'overflow' check which tells us that we need to > split up existing cont buffer in separate records: > > if (cont.len + len > sizeof(cont.buf)) > cont_flush(); > > At the same time we also have one extra