diff --git a/init/main.c b/init/main.c index 18f8f0140fa0..d856f3bf2152 100644 --- a/init/main.c +++ b/init/main.c @@ -567,7 +567,23 @@ asmlinkage __visible void __init start_kernel(void) build_all_zonelists(NULL); page_alloc_init(); +#ifdef CONFIG_ARCH_ROCKCHIP + { + const char *s = boot_command_line; + const char *e = &boot_command_line[strlen(boot_command_line)]; + int n = + pr_notice("Kernel command line: %s\n", boot_command_line); + n -= strlen("Kernel command line: "); + s += n; + /* command line maybe too long to print one time */ + while (n > 0 && s < e) { + n = pr_cont("%s\n", s); + s += n; + } + } +#else pr_notice("Kernel command line: %s\n", boot_command_line); +#endif parse_early_param(); after_dashes = parse_args("Booting kernel", static_command_line, __start___param,