[POWERPC] Set udbg_console index to 0
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 24 Apr 2008 05:13:13 +0000 (15:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 11:08:11 +0000 (21:08 +1000)
Because the udbg_console has CON_ENABLED set, it's possible that when we
register it with the console code the index won't be set. This leads to
slightly confusing boot messages like:

[    0.000000] console [udbg-1] enabled

We could remove CON_ENABLED, but we don't want to do that, we always
want the udbg console to be activated, even if the user specified some
other console on the command line.

The simplest fix seems to be just to set the index to 0 by hand. There
is no issue with duplicate udbg consoles, as we guard against registering
multiple times in register_early_udbg_console().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/udbg.c

index 7aad6203e411e926580dba0517deb918d3558a83..9ac5f3aad5e8ffefff498c165c45bc0293ff1a95 100644 (file)
@@ -155,7 +155,7 @@ static struct console udbg_console = {
        .name   = "udbg",
        .write  = udbg_console_write,
        .flags  = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT,
-       .index  = -1,
+       .index  = 0,
 };
 
 static int early_console_initialized;
This page took 0.025911 seconds and 5 git commands to generate.