summaryrefslogtreecommitdiff
path: root/kernel/src/panic.rs
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-02-25 02:24:26 -0600
committerNathan Ringo <nathan@remexre.com>2024-02-25 10:59:44 -0600
commitb5dcf57c317715a4339e0b4a0bf61ec5e8e94ca0 (patch)
tree120671a0b0f87936a8a7776077b2cb8b3fa4f1c5 /kernel/src/panic.rs
parent178cb5bb0755064a0824b1b3d564260db412ea92 (diff)
[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.
Diffstat (limited to 'kernel/src/panic.rs')
-rw-r--r--kernel/src/panic.rs2
1 files changed, 1 insertions, 1 deletions
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") }