From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Tue, 30 Aug 2011 13:16:55 -0400 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: <201108301316.56595.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, August 29, 2011 08:14:05 Graeme Russ wrote: > --- a/drivers/i2c/soft_i2c.c > +++ b/drivers/i2c/soft_i2c.c > > #ifdef DEBUG_I2C > #define PRINTD(fmt,args...) do { \ > - if (gd->have_console) \ > printf (fmt ,##args); \ > } while (0) > #else the "do {} while (0)" can go away now -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110830/789dee04/attachment.pgp