From b5dcf57c317715a4339e0b4a0bf61ec5e8e94ca0 Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Sun, 25 Feb 2024 02:24:26 -0600 Subject: [console] Adds a "strict flush" routine. When this routine is set by the platform-specific code, it is run after every log message. This is a permanently temporary measure to make it easier to debug boot problems with the kernel when bringing it up on a new platform. --- kernel/src/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/src/panic.rs') diff --git a/kernel/src/panic.rs b/kernel/src/panic.rs index 9aabb01..aa7df78 100644 --- a/kernel/src/panic.rs +++ b/kernel/src/panic.rs @@ -4,7 +4,7 @@ use core::{arch::asm, panic::PanicInfo}; #[panic_handler] fn panic(info: &PanicInfo) -> ! { - log::error!("{info:?}"); + log::error!("{info}"); loop { unsafe { asm!("wfi") } -- cgit v1.2.3