Have panic handler print message

This commit is contained in:
Greg Shuflin 2022-02-19 01:01:32 -08:00
parent 1cfd133cb2
commit 4d7aa79434
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ mod vga_buffer;
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
fn panic(info: &PanicInfo) -> ! {
println!("{info}");
loop {}
}