diff options
Diffstat (limited to 'src/kernel/cmos/rtc.c')
-rw-r--r-- | src/kernel/cmos/rtc.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/kernel/cmos/rtc.c b/src/kernel/cmos/rtc.c index 044c58b..0a67e64 100644 --- a/src/kernel/cmos/rtc.c +++ b/src/kernel/cmos/rtc.c @@ -1,6 +1,7 @@ #include <kernel/io/io.h> #include <kernel/graphics/vesa.h> #include <kernel/acpi/acpi.h> +#include <mlibc/stdio.h> unsigned char second; unsigned char minute; @@ -87,17 +88,5 @@ void read_rtc() void write_time() { read_rtc(); - vesa_draw_string("Current time: "); - vesa_draw_number(hour); - vesa_draw_string(":"); - vesa_draw_number(minute); - vesa_draw_string(":"); - vesa_draw_number(second); - vesa_draw_string(" "); - vesa_draw_number(month); - vesa_draw_string("/"); - vesa_draw_number(day); - vesa_draw_string("/"); - vesa_draw_number(year); - vesa_draw_string("\n"); + printf("Current time: %d:%d:%d %d/%d/%d\n", hour, minute, second, month, day, year); }
\ No newline at end of file |