sim_uart: rm LF to CRLF convertion

LF to CRLF has been converted in syslog framework

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8 2024-10-22 19:41:25 +08:00 committed by Xiang Xiao
parent c3f3b338c9
commit 5b5f148178
1 changed files with 1 additions and 9 deletions

View File

@ -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
}