bootconfig: Print array as multiple commands for legacy command line
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 20 Feb 2020 12:19:42 +0000 (21:19 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Feb 2020 22:56:29 +0000 (17:56 -0500)
commit88b913718db94697497028b85acbec8b180a4333
tree9c2e4d03f5217a599b2fdbd8f737f49d7a4cbd01
parenta24d286f36104ed45108a5a36f3868938434772f
bootconfig: Print array as multiple commands for legacy command line

Print arraied values as multiple same options for legacy
kernel command line. With this rule, if the "kernel.*" and
"init.*" array entries in bootconfig are printed out as
multiple same options, e.g.

kernel {
 console = "ttyS0,115200"
 console += "tty0"
}

will be correctly converted to

console="ttyS0,115200" console="tty0"

in the kernel command line.

Link: http://lkml.kernel.org/r/158220118213.26565.8163300497009463916.stgit@devnote2
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
init/main.c