xen/riscv: Fix early_puts() newline handling

OpenSBI already expands \n to \r\n.  Don't repeat the expansion, as it doubles
the size of the resulting log with every other line being blank.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Andrew Cooper committed 2023-03-24 12:16:31 +00:00
1 parent cc338b48dc
commit 8e7b7a7cd6
1 file changed
-2
-2
View File
@@ -27,8 +27,6 @@ void early_puts(const char *s, size_t nr)
{
while ( nr-- > 0 )
{
if ( *s == '\n' )
sbi_console_putchar('\r');
sbi_console_putchar(*s);
s++;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.