]> git.sur5r.net Git - u-boot/commit
console: Squelch pre-console output in console functions
authorGraeme Russ <graeme.russ@gmail.com>
Mon, 29 Aug 2011 02:14:05 +0000 (02:14 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 1 Oct 2011 19:54:49 +0000 (21:54 +0200)
commite3e454cd72f319908355427b1a3ae54b3dd53356
treeb461a0dc8287aa0c7d3e3eab525cd4f76c27481a
parent79df1208ee6984aa63468673c042667d121bb0bc
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>
arch/powerpc/cpu/mpc5xxx/i2c.c
arch/powerpc/cpu/mpc8xx/i2c.c
common/console.c
drivers/i2c/ppc4xx_i2c.c
drivers/i2c/soft_i2c.c