From fad16cd308d20cb9081066497dc1d8b262cf36df Mon Sep 17 00:00:00 2001 From: pointer-to-bios Date: Mon, 5 Feb 2024 22:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=86=85=E6=A0=B8=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/kernel/clock/time.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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