mirror of https://github.com/ARMmbed/mbed-os.git
Fix linefeed issues in crash dump output
parent
dc0beb7293
commit
4aa652f5f8
|
@ -194,9 +194,6 @@ void fault_print_str(char *fmtstr, uint32_t *values)
|
||||||
char hex_str[9]={0};
|
char hex_str[9]={0};
|
||||||
|
|
||||||
while(fmtstr[i] != '\0') {
|
while(fmtstr[i] != '\0') {
|
||||||
if(fmtstr[i] == '\n' || fmtstr[i] == '\r') {
|
|
||||||
serial_putc(&stdio_uart, '\r');
|
|
||||||
} else {
|
|
||||||
if(fmtstr[i]=='%') {
|
if(fmtstr[i]=='%') {
|
||||||
hex_to_str(values[vidx++],hex_str);
|
hex_to_str(values[vidx++],hex_str);
|
||||||
for(idx=7; idx>=0; idx--) {
|
for(idx=7; idx>=0; idx--) {
|
||||||
|
@ -205,7 +202,6 @@ void fault_print_str(char *fmtstr, uint32_t *values)
|
||||||
} else {
|
} else {
|
||||||
serial_putc(&stdio_uart, fmtstr[i]);
|
serial_putc(&stdio_uart, fmtstr[i]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue