-
- Downloads
console: Squelch pre-console output in console functions
There are some locations in the code which anticipate printf() being called before the console is ready by squelching printf() on gd->have_console. Move this squelching into printf(), vprintf(), puts() and putc(). Also make tstc() and getc() return 0 if console is not yet initialised Signed-off-by:Graeme Russ <graeme.russ@gmail.com> Tested-by:
Simon Glass <sjg@chromium.org>
Showing
- arch/powerpc/cpu/mpc5xxx/i2c.c 10 additions, 20 deletionsarch/powerpc/cpu/mpc5xxx/i2c.c
- arch/powerpc/cpu/mpc8xx/i2c.c 6 additions, 12 deletionsarch/powerpc/cpu/mpc8xx/i2c.c
- common/console.c 18 additions, 0 deletionscommon/console.c
- drivers/i2c/ppc4xx_i2c.c 1 addition, 4 deletionsdrivers/i2c/ppc4xx_i2c.c
- drivers/i2c/soft_i2c.c 0 additions, 1 deletiondrivers/i2c/soft_i2c.c
Loading
Please register or sign in to comment