Re: [PATCH v3] init/main.c: Wrap long kernel cmdline when printing to logs
From: Andrew Morton
Date: Thu Oct 23 2025 - 15:37:11 EST
On Thu, 23 Oct 2025 11:33:05 -0700 Douglas Anderson <dianders@xxxxxxxxxxxx> wrote:
>
> Add wrapping to the printout of the kernel command line.
>
Spose so.
>
>
> init/Kconfig | 18 ++++++++++
> init/main.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++-
> 2 files changed, 113 insertions(+), 1 deletion(-)
It seems like a lot of fuss for a small problem. But this:
--- a/init/main.c~init-mainc-wrap-long-kernel-cmdline-when-printing-to-logs-fix
+++ a/init/main.c
@@ -944,7 +944,7 @@ static void __init early_numa_node_init(
* Kernel command line: jumps over the \
* Kernel command line: lazy dog."
*/
-static void print_kernel_cmdline(const char *cmdline)
+static void __init print_kernel_cmdline(const char *cmdline)
{
size_t len;
_
will make it a whole lot more palatable, no?