Commit 5a50e5bf 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 da09354b
......@@ -726,8 +726,11 @@ static void __init 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);
}
/* This is a non __init function. Force it to be noinline otherwise gcc
......
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