arm64/debug_console: Add basic functionality to puts call
* Matches arm and riscv64 Change-Id: I88874df4da16f5019def0c0c79ca41f37a926c12 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4916 Reviewed-by: <[email protected]> Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
committed by
Alex von Gluck IV
parent
8e6c16e503
commit
b0dd708eca
@@ -59,6 +59,15 @@ arch_debug_serial_putchar(const char c)
|
||||
void
|
||||
arch_debug_serial_puts(const char *s)
|
||||
{
|
||||
while (*s != '\0') {
|
||||
char ch = *s;
|
||||
if (ch == '\n') {
|
||||
arch_debug_serial_putchar('\r');
|
||||
arch_debug_serial_putchar('\n');
|
||||
} else if (ch != '\r')
|
||||
arch_debug_serial_putchar(ch);
|
||||
s++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user