Printing from panic handler
This commit is contained in:
parent
ae7b904abc
commit
13fb110417
|
@ -3,7 +3,7 @@
|
|||
#![no_main]
|
||||
#![feature(naked_functions)]
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
use core::{panic::PanicInfo};
|
||||
|
||||
mod heap;
|
||||
mod uart;
|
||||
|
@ -67,7 +67,9 @@ extern "C" fn start() -> ! {
|
|||
}
|
||||
|
||||
#[panic_handler]
|
||||
fn on_panic(_info: &PanicInfo) -> ! {
|
||||
fn on_panic(info: &PanicInfo) -> ! {
|
||||
println!("{}", info);
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue