This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5b5f148178 sim_uart: rm LF to CRLF convertion
5b5f148178 is described below
commit 5b5f148178579ebd510b2075b7b8d50a0a14a0e4
Author: yangsong8 <[email protected]>
AuthorDate: Tue Oct 22 19:41:25 2024 +0800
sim_uart: rm LF to CRLF convertion
LF to CRLF has been converted in syslog framework
Signed-off-by: yangsong8 <[email protected]>
---
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 e329d4a2da..54bc95dc8e 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
}