完成内核日志

This commit is contained in:
pointer-to-bios 2024-02-05 22:09:18 +08:00
parent da4c7807b3
commit fad16cd308
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ make debug
* [x] 内存分配器 * [x] 内存分配器
* [x] raw_allocator * [x] raw_allocator
* [x] tty * [x] tty
* [ ] 内核日志 * [x] 内核日志
* [ ] 文件系统 * [ ] 文件系统
* [ ] vfs * [ ] vfs
* [ ] fat32驱动移植 * [ ] fat32驱动移植

View File

@ -96,7 +96,7 @@ impl ToString for SystemTime {
let milisec = second % second_dur; let milisec = second % second_dur;
second /= second_dur; second /= second_dur;
format!( format!(
"[ {}-{}-{} {}:{}:{}.{} ]", "[ {}-{}-{} {}:{}:{}.{} ] ",
year, month, day, hour, minute, second, milisec year, month, day, hour, minute, second, milisec
) )
} }

View File

@ -47,7 +47,7 @@ unsafe fn kernel_panic_handler(info: &PanicInfo) -> ! {
} else { } else {
"Unknown panic." "Unknown panic."
}, },
(Color::GREEN, Color::BLACK), (Color::BLUE, Color::BLACK),
)); ));
v.push(("\n", (Color::BLACK, Color::BLACK))); v.push(("\n", (Color::BLACK, Color::BLACK)));
v v