增加内核日志功能 #3

Merged
pointer-to-bios merged 17 commits from pointer-to-bios/metaverse-dev:main into main 2024-02-05 22:10:26 +08:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit fad16cd308 - Show all commits

View File

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

View File

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

View File

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