Skip to content

Commit

Permalink
Merge pull request tock#3896 from Ioan-Cristian/improve-panic
Browse files Browse the repository at this point in the history
Fix panic printing
  • Loading branch information
alevy authored Mar 4, 2024
2 parents e73556f + 6d997ed commit 4a122ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ pub unsafe fn panic_print<W: Write + IoWrite, C: Chip, PP: ProcessPrinter>(
process_printer: &'static Option<&'static PP>,
) {
panic_begin(nop);
panic_banner(writer, panic_info);
// Flush debug buffer if needed
flush(writer);
panic_banner(writer, panic_info);
panic_cpu_state(chip, writer);

// Some systems may enforce memory protection regions for the
Expand Down

0 comments on commit 4a122ea

Please sign in to comment.