[U-Boot] [PATCH V2] console: Implement pre-console buffer
Mike Frysinger
vapier at gentoo.org
Tue Aug 30 19:19:59 CEST 2011
On Tuesday, August 30, 2011 08:49:41 Graeme Russ wrote:
> - if (!gd->have_console)
> + if (!gd->have_console) {
> +#ifdef CONFIG_PRE_CONSOLE_BUFFER
> + pre_console_putc(c);
> +#endif
> return;
> + }
add inline stubs for the pre_console_xxx helpers and you can drop all the
ifdef's through out the rest of the code
#ifdef CONFIG_PRE_CONSOLE_BUFFER
... normal defines for these ...
#else
static inline void pre_console_putc(const char c) {}
static inline void pre_console_puts(const char *s) {}
#endif
-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/5c468ab6/attachment.pgp
More information about the U-Boot
mailing list