Commit 52b8a49e authored by Catalin Marinas's avatar Catalin Marinas

run_init_process() error reporting

This function prints the error code returned by execve.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent deb9e425
......@@ -701,8 +701,11 @@ static void do_pre_smp_initcalls(void)
static void run_init_process(char *init_filename)
{
long ret;
argv_init[0] = init_filename;
kernel_execve(init_filename, argv_init, envp_init);
ret = kernel_execve(init_filename, argv_init, envp_init);
printk(KERN_INFO "%s exit code: %ld\n", init_filename, ret);
}
static int init(void * unused)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment