panic_handler updated with println! macro
This commit is contained in:
parent
d1f80928bf
commit
745b574bd6
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ pub extern "C" fn _start() -> ! {
|
||||||
|
|
||||||
// called on panic
|
// called on panic
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic(_info: &PanicInfo) -> ! {
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
|
println!("{}", info);
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue