diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-04-24 01:13:13 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-24 07:08:11 -0400 |
commit | c7afb4e22961b5ec88eb6f7b81260dafa9f287c7 (patch) | |
tree | 8a7d966e1547598331019155de0c3f9aadcc0a29 /arch/powerpc | |
parent | 90035fe378c7459ba19c43c63d5f878284224ce4 (diff) |
[POWERPC] Set udbg_console index to 0
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/udbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 7aad6203e411..9ac5f3aad5e8 100644 --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c | |||
@@ -155,7 +155,7 @@ static struct console udbg_console = { | |||
155 | .name = "udbg", | 155 | .name = "udbg", |
156 | .write = udbg_console_write, | 156 | .write = udbg_console_write, |
157 | .flags = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT, | 157 | .flags = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT, |
158 | .index = -1, | 158 | .index = 0, |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static int early_console_initialized; | 161 | static int early_console_initialized; |