We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e997c74 commit aebe0d3Copy full SHA for aebe0d3
bios/stage-2/src/screen.rs
@@ -32,7 +32,11 @@ impl Write for Writer {
32
#[panic_handler]
33
#[cfg(not(test))]
34
pub fn panic(info: &core::panic::PanicInfo) -> ! {
35
- let _ = writeln!(Writer, "\nPANIC: {info}");
+ let _ = write!(Writer, "\nPANIC: ");
36
+ if let Some(location) = info.location() {
37
+ let _ = writeln!(Writer, "{location} ");
38
+ }
39
+ let _ = writeln!(Writer, " {info}");
40
41
loop {
42
unsafe {
0 commit comments