mirror of https://github.com/ARMmbed/mbed-os.git
Add missing carriage returns to fault handler
Fault handler was outputting just LFs between lines, when standard terminals require CR+LF, leading to messy output.pull/6654/head
parent
cabef4db1d
commit
fc61b8ab50
|
@ -220,6 +220,9 @@ void fault_print_str(char *fmtstr, uint32_t *values)
|
|||
serial_putc(&stdio_uart, hex_str[idx]);
|
||||
}
|
||||
} else {
|
||||
if (fmtstr[i] == '\n') {
|
||||
serial_putc(&stdio_uart, '\r');
|
||||
}
|
||||
serial_putc(&stdio_uart, fmtstr[i]);
|
||||
}
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue