syslog: convert \n to \r\n in syslog framework layer

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8
2024-10-09 21:55:48 +08:00
committed by Xiang Xiao
parent 67ed036227
commit 8c13b8df1d
108 changed files with 294 additions and 1705 deletions
-19
View File
@@ -877,16 +877,6 @@ int up_putc(int ch)
uint8_t imr = 0;
up_disableuartint(dev, &imr);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
up_restoreuartint(dev, imr);
#endif
@@ -931,15 +921,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
#endif
return ch;
-19
View File
@@ -872,16 +872,6 @@ int up_putc(int ch)
uint8_t imr = 0;
up_disableuartint(dev, &imr);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
up_restoreuartint(dev, imr);
#endif
@@ -926,15 +916,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
#endif
return ch;
-19
View File
@@ -958,16 +958,6 @@ int up_putc(int ch)
uint8_t imr = 0;
up_disableuartint(dev, &imr);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
up_restoreuartint(dev, imr);
#endif
@@ -1012,15 +1002,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sparc_lowputc('\r');
}
sparc_lowputc(ch);
#endif
return ch;