From 5b5f148178579ebd510b2075b7b8d50a0a14a0e4 Mon Sep 17 00:00:00 2001 From: yangsong8 Date: Tue, 22 Oct 2024 19:41:25 +0800 Subject: [PATCH] sim_uart: rm LF to CRLF convertion LF to CRLF has been converted in syslog framework Signed-off-by: yangsong8 --- arch/sim/src/sim/sim_uart.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/sim/src/sim/sim_uart.c b/arch/sim/src/sim/sim_uart.c index e329d4a2da7ab..54bc95dc8eb22 100644 --- a/arch/sim/src/sim/sim_uart.c +++ b/arch/sim/src/sim/sim_uart.c @@ -778,15 +778,7 @@ void sim_uartinit(void) void up_nputs(const char *str, size_t len) { #ifdef USE_DEVCONSOLE - if (str[len - 1] == '\n') - { - uart_nputs(1, str, len - 1); - uart_nputs(1, "\r\n", 2); - } - else - { - uart_nputs(1, str, len); - } + uart_nputs(1, str, len); #endif }