From 8e7b7a7cd692113f6ae7d03bc2e81b337ec797ca Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 2 Mar 2023 20:35:28 +0000 Subject: [PATCH] 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 Reviewed-by: Alistair Francis --- xen/arch/riscv/early_printk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/riscv/early_printk.c b/xen/arch/riscv/early_printk.c index dfe4ad77e2..610c814f54 100644 --- a/xen/arch/riscv/early_printk.c +++ b/xen/arch/riscv/early_printk.c @@ -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++; }