From: Mike Frysinger Date: Mon, 29 Aug 2011 15:20:27 -0400 Subject: [U-Boot] [RFC PATCH] Pre-console buffer for ARM In-Reply-To: <1314638517-20178-1-git-send-email-sjg@chromium.org> References: <1314638517-20178-1-git-send-email-sjg@chromium.org> Message-ID: <201108291520.28565.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 13:21:57 Simon Glass wrote: > +void pre_console_putc(const char c) > +{ > + char *buffer = (char *)CONFIG_SYS_TMP_CON_BUF_ADDR; excess space after the "=" > + if (gd->con_buf_idx < CONFIG_SYS_TMP_CON_BUF_SZ) > + buffer[gd->con_buf_idx++] = c; seems like a circular buffer would make more sense ... usually the part of the log you want is the last chunk and not the first -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/20110829/0404f2e3/attachment.pgp