• Michael Ellerman's avatar
    [POWERPC] Set udbg_console index to 0 · c7afb4e2
    Michael Ellerman authored
    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: default avatarMichael Ellerman <michael@ellerman.id.au>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    c7afb4e2
udbg.c 3.88 KB