Date: Sat, 25 Jan 2014 21:57:45 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261172 - head/sys/arm/at91 Message-ID: <201401252157.s0PLvjsm020772@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Jan 25 21:57:45 2014 New Revision: 261172 URL: http://svnweb.freebsd.org/changeset/base/261172 Log: Make early printf output nicer by inserting a carriage return before any linefeeds that are output. Modified: head/sys/arm/at91/uart_dev_at91usart.c Modified: head/sys/arm/at91/uart_dev_at91usart.c ============================================================================== --- head/sys/arm/at91/uart_dev_at91usart.c Sat Jan 25 21:52:19 2014 (r261171) +++ head/sys/arm/at91/uart_dev_at91usart.c Sat Jan 25 21:57:45 2014 (r261172) @@ -288,6 +288,10 @@ volatile uint32_t *at91_dbgu = (volatile void eputc(int c) { + + if (c == '\n') + eputc('\r'); + while (!(at91_dbgu[USART_CSR / 4] & USART_CSR_TXRDY)) continue; at91_dbgu[USART_THR / 4] = c;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401252157.s0PLvjsm020772>