Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line
From: Sergey Senozhatsky
Date: Thu May 21 2020 - 00:32:18 EST
On (20/05/20 13:36), Joe Perches wrote:
> > We can split command line in a loop - memchr(pos, ' ') - and
> > pr_cont() parts of the command line. pr_cont() has overflow
> > control and it flushes cont buffer before it overflows, so
> > we should not lose anything.
>
> It doesn't matter much here, but I believe
> there's an 8k max buffer for pr_cont output.
>
> include/linux/printk.h:#define CONSOLE_EXT_LOG_MAX 8192
This is for extended payload - the key:value dictionaries
which device core appends to normal printk() messages. We
don't have that many consoles that handle extended output
(netcon and, maybe, a few more).
-ss