[U-Boot] [PATCH 1/2] console: Squelch pre-console output in console functions
Mike Frysinger
vapier at gentoo.org
Tue Aug 30 19:16:55 CEST 2011
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
More information about the U-Boot
mailing list