From 77cfc34f59c55076c655407765ed0e57c3e505ee Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 May 2024 18:47:11 +0800 Subject: [PATCH] make panic outputs in hex everything else is in hex, why should these be in decimal... --- kernel/src/arch/riscv/irq.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/arch/riscv/irq.rs b/kernel/src/arch/riscv/irq.rs index 6a097914e..67c88e636 100644 --- a/kernel/src/arch/riscv/irq.rs +++ b/kernel/src/arch/riscv/irq.rs @@ -415,9 +415,9 @@ pub extern "C" fn trap_handler( _ => { #[cfg(not(any(feature = "precursor", feature = "renode")))] - println!("!!! Unrecognized exception: {:?}", ex); + println!("!!! Unrecognized exception: {:x?}", ex); #[cfg(any(feature = "precursor", feature = "renode"))] - panic!("!!! Unrecognized exception: {:?}", ex); + panic!("!!! Unrecognized exception: {:x?}", ex); } }