Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a122ea

Browse files
authored
Merge pull request #3896 from Ioan-Cristian/improve-panic
Fix panic printing
2 parents e73556f + 6d997ed commit 4a122ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/src/debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ pub unsafe fn panic_print<W: Write + IoWrite, C: Chip, PP: ProcessPrinter>(
117117
process_printer: &'static Option<&'static PP>,
118118
) {
119119
panic_begin(nop);
120-
panic_banner(writer, panic_info);
121120
// Flush debug buffer if needed
122121
flush(writer);
122+
panic_banner(writer, panic_info);
123123
panic_cpu_state(chip, writer);
124124

125125
// Some systems may enforce memory protection regions for the

0 commit comments

Comments
 (0)