From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 17 Mar 2016 23:59:04 -0700 Subject: [U-Boot] [PATCH 2/2] debug_uart: Remove duplicated carriage return handling In-Reply-To: <1458284344-32149-1-git-send-email-bmeng.cn@gmail.com> References: <1458284344-32149-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1458284344-32149-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Since commit b391d74 "debug_uart: output CR along with LF", the handling in puts() is duplicated, not to mention that it should output carriage return before line feed. Signed-off-by: Bin Meng --- common/console.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/console.c b/common/console.c index 6a0d11b..12293f3 100644 --- a/common/console.c +++ b/common/console.c @@ -515,8 +515,6 @@ void puts(const char *s) int ch = *s++; printch(ch); - if (ch == '\n') - printch('\r'); } return; } -- 1.8.2.1