Skip to content

Commit

Permalink
sim_uart: rm LF to CRLF convertion
Browse files Browse the repository at this point in the history
LF to CRLF has been converted in syslog framework

Signed-off-by: yangsong8 <[email protected]>
  • Loading branch information
yangsong8-ai authored and xiaoxiang781216 committed Oct 22, 2024
1 parent c3f3b33 commit 5b5f148
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions arch/sim/src/sim/sim_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5b5f148

Please sign in to comment.