aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 4961410ba367..7ce9a8c13312 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -985,12 +985,15 @@ void register_console(struct console *console)
985 if (!(console->flags & CON_ENABLED)) 985 if (!(console->flags & CON_ENABLED))
986 return; 986 return;
987 987
988 if (bootconsole) { 988 if (bootconsole && (console->flags & CON_CONSDEV)) {
989 printk(KERN_INFO "console handover: boot [%s%d] -> real [%s%d]\n", 989 printk(KERN_INFO "console handover: boot [%s%d] -> real [%s%d]\n",
990 bootconsole->name, bootconsole->index, 990 bootconsole->name, bootconsole->index,
991 console->name, console->index); 991 console->name, console->index);
992 unregister_console(bootconsole); 992 unregister_console(bootconsole);
993 console->flags &= ~CON_PRINTBUFFER; 993 console->flags &= ~CON_PRINTBUFFER;
994 } else {
995 printk(KERN_INFO "console [%s%d] enabled\n",
996 console->name, console->index);
994 } 997 }
995 998
996 /* 999 /*