mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
cc338b48dc
commit
8e7b7a7cd6
1 file changed
-2
@@ -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++;
|
||||
}
|
||||
|
||||