From 4d7aa7943413573d9e387f0e4a11d814c7912ee0 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 19 Feb 2022 01:01:32 -0800 Subject: [PATCH] Have panic handler print message --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2cb6c06..bbacd23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,8 @@ mod vga_buffer; use core::panic::PanicInfo; #[panic_handler] -fn panic(_info: &PanicInfo) -> ! { +fn panic(info: &PanicInfo) -> ! { + println!("{info}"); loop {} }