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:
parent
c3f3b338c9
commit
5b5f148178
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue