Skip to content

Commit f4e9ce1

Browse files
committed
refactor(port_riscv): use "alternate" hexadecimal formatting
Ditto.
1 parent 4e807b9 commit f4e9ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/r3_port_riscv/src/threading/imp/instemu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ unsafe fn panic_on_unhandled_exception(fl_state: *mut usize, mcause: usize) -> !
168168
// Read the original PC from the first-level state
169169
let pc = unsafe { *fl_state.offset(16) };
170170

171-
panic!("unhandled exception {mcause} at 0x{pc:08x}");
171+
panic!("unhandled exception {mcause} at {pc:#08x}");
172172
}
173173

174174
#[cfg(not(feature = "emulate-lr-sc"))]

0 commit comments

Comments
 (0)