From: Wolfgang Denk Date: Sat, 01 Oct 2011 21:54:57 +0200 Subject: [U-Boot] [PATCH 1/2] console: Squelch pre-console output in console functions In-Reply-To: <1314620046-26187-2-git-send-email-graeme.russ@gmail.com> References: <1314620046-26187-1-git-send-email-graeme.russ@gmail.com> <1314620046-26187-2-git-send-email-graeme.russ@gmail.com> Message-ID: <20111001195457.5083F18DFFFE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Graeme Russ, In message <1314620046-26187-2-git-send-email-graeme.russ@gmail.com> you wrote: > 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 > --- > arch/powerpc/cpu/mpc5xxx/i2c.c | 30 ++++++++++-------------------- > arch/powerpc/cpu/mpc8xx/i2c.c | 18 ++++++------------ > common/console.c | 18 ++++++++++++++++++ > drivers/i2c/ppc4xx_i2c.c | 5 +---- > drivers/i2c/soft_i2c.c | 1 - > 5 files changed, 35 insertions(+), 37 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I express preference for a chronological sequence of events which precludes a violence. - Terry Pratchett, _The Dark Side of the Sun_