Commit c2409b00 authored by Richard Weinberger's avatar Richard Weinberger Committed by Linus Torvalds

init: raise log level

If the kernel was booted with the "quiet" boot option we have currently no
chance to see why an initrd fails.  Change KERN_WARNING to KERN_ERR to see
what is going on.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f91eb62f
...@@ -825,7 +825,7 @@ static int __ref kernel_init(void *unused) ...@@ -825,7 +825,7 @@ static int __ref kernel_init(void *unused)
if (ramdisk_execute_command) { if (ramdisk_execute_command) {
if (!run_init_process(ramdisk_execute_command)) if (!run_init_process(ramdisk_execute_command))
return 0; return 0;
printk(KERN_WARNING "Failed to execute %s\n", printk(KERN_ERR "Failed to execute %s\n",
ramdisk_execute_command); ramdisk_execute_command);
} }
...@@ -838,7 +838,7 @@ static int __ref kernel_init(void *unused) ...@@ -838,7 +838,7 @@ static int __ref kernel_init(void *unused)
if (execute_command) { if (execute_command) {
if (!run_init_process(execute_command)) if (!run_init_process(execute_command))
return 0; return 0;
printk(KERN_WARNING "Failed to execute %s. Attempting " printk(KERN_ERR "Failed to execute %s. Attempting "
"defaults...\n", execute_command); "defaults...\n", execute_command);
} }
if (!run_init_process("/sbin/init") || if (!run_init_process("/sbin/init") ||
...@@ -884,7 +884,7 @@ static noinline void __init kernel_init_freeable(void) ...@@ -884,7 +884,7 @@ static noinline void __init kernel_init_freeable(void)
/* Open the /dev/console on the rootfs, this should never fail */ /* Open the /dev/console on the rootfs, this should never fail */
if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
printk(KERN_WARNING "Warning: unable to open an initial console.\n"); printk(KERN_ERR "Warning: unable to open an initial console.\n");
(void) sys_dup(0); (void) sys_dup(0);
(void) sys_dup(0); (void) sys_dup(0);
......
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