forked from M-Labs/artiq
1
0
Fork 0

firmware: Add whitespace between panic handler location and message

This commit is contained in:
David Nadlinger 2019-12-17 19:59:59 +00:00
parent 0279a60a55
commit d3508b014f
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
send(&Log(format_args!("panic at unknown location")));
}
if let Some(message) = info.message() {
send(&Log(format_args!("{}\n", message)));
send(&Log(format_args!(": {}\n", message)));
} else {
send(&Log(format_args!("\n")));
}

View File

@ -309,7 +309,7 @@ pub fn panic_impl(info: &core::panic::PanicInfo) -> ! {
print!("panic at unknown location");
}
if let Some(message) = info.message() {
println!("{}", message);
println!(": {}", message);
} else {
println!("");
}