完成内核日志
This commit is contained in:
parent
da4c7807b3
commit
fad16cd308
|
@ -56,7 +56,7 @@ make debug
|
|||
* [x] 内存分配器
|
||||
* [x] raw_allocator
|
||||
* [x] tty
|
||||
* [ ] 内核日志
|
||||
* [x] 内核日志
|
||||
* [ ] 文件系统
|
||||
* [ ] vfs
|
||||
* [ ] fat32驱动(移植)
|
||||
|
|
|
@ -96,7 +96,7 @@ impl ToString for SystemTime {
|
|||
let milisec = second % second_dur;
|
||||
second /= second_dur;
|
||||
format!(
|
||||
"[ {}-{}-{} {}:{}:{}.{} ]",
|
||||
"[ {}-{}-{} {}:{}:{}.{} ] ",
|
||||
year, month, day, hour, minute, second, milisec
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue