diff --git a/README.md b/README.md index 42c9a2b..4600d15 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ make debug * [x] 内存分配器 * [x] raw_allocator * [x] tty -* [ ] 内核日志 +* [x] 内核日志 * [ ] 文件系统 * [ ] vfs * [ ] fat32驱动(移植) diff --git a/src/kernel/clock/time.rs b/src/kernel/clock/time.rs index a2eea96..d286202 100644 --- a/src/kernel/clock/time.rs +++ b/src/kernel/clock/time.rs @@ -96,7 +96,7 @@ impl ToString for SystemTime { let milisec = second % second_dur; second /= second_dur; format!( - "[ {}-{}-{} {}:{}:{}.{} ]", + "[ {}-{}-{} {}:{}:{}.{} ] ", year, month, day, hour, minute, second, milisec ) } diff --git a/src/lib.rs b/src/lib.rs index 6166204..e8ac072 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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