commit | 70600b0668ce48e77c6c754523595f470072dc96 | [log] [tgz] |
---|---|---|
author | Graeme Russ <graeme.russ@gmail.com> | Mon Aug 29 02:14:05 2011 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Sat Oct 01 21:54:49 2011 +0200 |
tree | b461a0dc8287aa0c7d3e3eab525cd4f76c27481a | |
parent | a51bebc2a22e22ae96b9aaeab5e59264fac52ee2 [diff] |
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>