From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Tue, 30 Aug 2011 13:19:59 -0400 Subject: [U-Boot] [PATCH V2] console: Implement pre-console buffer In-Reply-To: <1314708581-13678-1-git-send-email-graeme.russ@gmail.com> References: <1314620046-26187-3-git-send-email-graeme.russ@gmail.com> <1314708581-13678-1-git-send-email-graeme.russ@gmail.com> Message-ID: <201108301320.00630.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 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