We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
basic_boot
1 parent 867672b commit 9efe87fCopy full SHA for 9efe87f
tests/test_kernels/default_settings/src/bin/basic_boot.rs
@@ -13,6 +13,9 @@ fn kernel_main(_boot_info: &'static mut BootInfo) -> ! {
13
14
/// This function is called on panic.
15
#[panic_handler]
16
-fn panic(_info: &PanicInfo) -> ! {
+fn panic(info: &PanicInfo) -> ! {
17
+ use core::fmt::Write;
18
+
19
+ let _ = writeln!(test_kernel_default_settings::serial(), "PANIC: {}", info);
20
exit_qemu(QemuExitCode::Failed);
21
}
0 commit comments