From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVAKY-0003Ww-Ia for barebox@lists.infradead.org; Tue, 19 Jun 2018 06:41:32 +0000 From: Sascha Hauer Date: Tue, 19 Jun 2018 08:41:15 +0200 Message-Id: <20180619064117.13904-3-s.hauer@pengutronix.de> In-Reply-To: <20180619064117.13904-1-s.hauer@pengutronix.de> References: <20180619064117.13904-1-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/5] console_simple: Remove duplicated newline conversion To: Barebox List console_puts uses console_putc for printing which already does newline conversion, so do not do it again in console_puts. Signed-off-by: Sascha Hauer --- common/console_simple.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/console_simple.c b/common/console_simple.c index 9675cbb0a6..0825ec07ec 100644 --- a/common/console_simple.c +++ b/common/console_simple.c @@ -16,8 +16,6 @@ int console_puts(unsigned int ch, const char *str) while (*s) { console_putc(ch, *s); - if (*s == '\n') - console_putc(ch, '\r'); s++; i++; } -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox