mirror of https://github.com/m-labs/artiq.git
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")));
|
send(&Log(format_args!("panic at unknown location")));
|
||||||
}
|
}
|
||||||
if let Some(message) = info.message() {
|
if let Some(message) = info.message() {
|
||||||
send(&Log(format_args!("{}\n", message)));
|
send(&Log(format_args!(": {}\n", message)));
|
||||||
} else {
|
} else {
|
||||||
send(&Log(format_args!("\n")));
|
send(&Log(format_args!("\n")));
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,7 @@ pub fn panic_impl(info: &core::panic::PanicInfo) -> ! {
|
||||||
print!("panic at unknown location");
|
print!("panic at unknown location");
|
||||||
}
|
}
|
||||||
if let Some(message) = info.message() {
|
if let Some(message) = info.message() {
|
||||||
println!("{}", message);
|
println!(": {}", message);
|
||||||
} else {
|
} else {
|
||||||
println!("");
|
println!("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue