Compare commits

...

2 commits

Author SHA1 Message Date
745b574bd6 panic_handler updated with println! macro 2025-08-27 01:09:36 +02:00
d1f80928bf small correction 2025-08-27 01:07:12 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,8 @@ pub extern "C" fn _start() -> ! {
// called on panic
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}

View file

@ -97,7 +97,6 @@ pub fn _print(args: fmt::Arguments) {
WRITER.lock().write_fmt(args).unwrap();
}
impl Writer {
pub fn write_byte(&mut self, byte: u8) {
match byte {