]> Git Repo - linux.git/commitdiff
kernel/printk: do not turn off bootconsole in printk_late_init() if keep_bootcon
authorNishanth Aravamudan <[email protected]>
Thu, 25 Aug 2011 22:59:11 +0000 (15:59 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Aug 2011 23:25:34 +0000 (16:25 -0700)
It seems that 7bf693951a8e ("console: allow to retain boot console via
boot option keep_bootcon") doesn't always achieve what it aims, as when
printk_late_init() runs it unconditionally turns off all boot consoles.
With this patch, I am able to see more messages on the boot console in
KVM guests than I can without, when keep_bootcon is specified.

I think it is appropriate for the relevant -stable trees.  However, it's
more of an annoyance than a serious bug (ideally you don't need to keep
the boot console around as console handover should be working -- I was
encountering a situation where the console handover wasn't working and
not having the boot console available meant I couldn't see why).

Signed-off-by: Nishanth Aravamudan <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Greg KH <[email protected]>
Acked-by: Fabio M. Di Nitto <[email protected]>
Cc: <[email protected]> [2.6.39.x, 3.0.x]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/printk.c

index 836a2ae0ac31c9120e362bad14254c3e2247eb25..28a40d8171b8e67488efc6f383736d5f7532c5ff 100644 (file)
@@ -1604,7 +1604,7 @@ static int __init printk_late_init(void)
        struct console *con;
 
        for_each_console(con) {
-               if (con->flags & CON_BOOT) {
+               if (!keep_bootcon && con->flags & CON_BOOT) {
                        printk(KERN_INFO "turn off boot console %s%d\n",
                                con->name, con->index);
                        unregister_console(con);
This page took 0.056769 seconds and 4 git commands to generate.