mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Print the PanicInfo on panic
This commit is contained in:
@@ -14,6 +14,7 @@ pub extern "C" fn _start() -> ! {
|
|||||||
|
|
||||||
/// This function is called on panic.
|
/// This function is called on panic.
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic(_info: &PanicInfo) -> ! {
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
|
println!("{}", info);
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user