aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2013-04-29 19:18:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:20 -0400
commitc2409b004ac4757ac5121851f8a58e0bcbcf7a3c (patch)
treea5537edab10b0ae5f29d16e75ce67df034d8666a /init/main.c
parentf91eb62f71b31e69e405663ff8d047bc3b9f7525 (diff)
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: Richard 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index 26cd398acf2a..e1c87e1d6359 100644
--- a/init/main.c
+++ b/init/main.c
@@ -825,7 +825,7 @@ static int __ref kernel_init(void *unused)
825 if (ramdisk_execute_command) { 825 if (ramdisk_execute_command) {
826 if (!run_init_process(ramdisk_execute_command)) 826 if (!run_init_process(ramdisk_execute_command))
827 return 0; 827 return 0;
828 printk(KERN_WARNING "Failed to execute %s\n", 828 printk(KERN_ERR "Failed to execute %s\n",
829 ramdisk_execute_command); 829 ramdisk_execute_command);
830 } 830 }
831 831
@@ -838,7 +838,7 @@ static int __ref kernel_init(void *unused)
838 if (execute_command) { 838 if (execute_command) {
839 if (!run_init_process(execute_command)) 839 if (!run_init_process(execute_command))
840 return 0; 840 return 0;
841 printk(KERN_WARNING "Failed to execute %s. Attempting " 841 printk(KERN_ERR "Failed to execute %s. Attempting "
842 "defaults...\n", execute_command); 842 "defaults...\n", execute_command);
843 } 843 }
844 if (!run_init_process("/sbin/init") || 844 if (!run_init_process("/sbin/init") ||
@@ -884,7 +884,7 @@ static noinline void __init kernel_init_freeable(void)
884 884
885 /* Open the /dev/console on the rootfs, this should never fail */ 885 /* Open the /dev/console on the rootfs, this should never fail */
886 if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) 886 if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
887 printk(KERN_WARNING "Warning: unable to open an initial console.\n"); 887 printk(KERN_ERR "Warning: unable to open an initial console.\n");
888 888
889 (void) sys_dup(0); 889 (void) sys_dup(0);
890 (void) sys_dup(0); 890 (void) sys_dup(0);