Skip to content

Commit 3004553

Browse files
committed
fix(panic): 修复了输出的一些小问题......
1 parent af26b31 commit 3004553

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/src/libs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
pub mod acpi;
12
pub mod bitmap;
23
pub mod bmp;
34
pub mod initrd;
45
pub mod logger;
56
pub mod msr;
67
pub mod shell;
78
pub mod time;
8-
pub mod acpi;

kernel/src/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub fn panic(info: &PanicInfo) -> ! {
180180
let mut console = PanicConsole::new(framebuffer);
181181
console.clear(bg);
182182

183-
let _ = write!(
183+
let _ = writeln!(
184184
console,
185185
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
186186
);

0 commit comments

Comments
 (0)