forked from M-Labs/artiq
firmware: Add whitespace between panic handler location and message
This commit is contained in:
parent
0279a60a55
commit
d3508b014f
@ -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")));
|
||||
}
|
||||
|
@ -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!("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user