|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/riscv: Fix early_puts() newline handling
commit 8e7b7a7cd692113f6ae7d03bc2e81b337ec797ca
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Thu Mar 2 20:35:28 2023 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri Mar 24 12:16:31 2023 +0000
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@xxxxxxxxxx>
Reviewed-by: Alistair Francis <alistair.francis@xxxxxxx>
---
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++;
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |