From d3508b014f9d6306d7ac150a764e820d0162d082 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Tue, 17 Dec 2019 19:59:59 +0000 Subject: [PATCH] firmware: Add whitespace between panic handler location and message --- artiq/firmware/ksupport/lib.rs | 2 +- artiq/firmware/runtime/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/ksupport/lib.rs b/artiq/firmware/ksupport/lib.rs index 74ab757ef..c6e747fdb 100644 --- a/artiq/firmware/ksupport/lib.rs +++ b/artiq/firmware/ksupport/lib.rs @@ -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"))); } diff --git a/artiq/firmware/runtime/main.rs b/artiq/firmware/runtime/main.rs index d7f983090..d79c7b254 100644 --- a/artiq/firmware/runtime/main.rs +++ b/artiq/firmware/runtime/main.rs @@ -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!(""); }