From 4a50c01c50788f63fc060512b297a25f6a86cf59 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 28 Oct 2023 12:12:27 +0300 Subject: [PATCH] Kernel: Print to the log what is the first user process & its arguments --- Kernel/Arch/init.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/Arch/init.cpp b/Kernel/Arch/init.cpp index df3e98a8a3c..053ba74eed5 100644 --- a/Kernel/Arch/init.cpp +++ b/Kernel/Arch/init.cpp @@ -449,6 +449,8 @@ void init_stage2(void*) auto userspace_init = kernel_command_line().userspace_init(); auto init_args = kernel_command_line().userspace_init_args(); + dmesgln("Running first user process: {}", userspace_init); + dmesgln("Init (first) process args: {}", init_args); auto init_or_error = Process::create_user_process(userspace_init, UserID(0), GroupID(0), move(init_args), {}, tty0); if (init_or_error.is_error()) PANIC("init_stage2: Error spawning init process: {}", init_or_error.error());