From ac947d45c288f62e927895afe7cd6a722ffdd8f8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 30 Nov 2019 16:21:57 +0100 Subject: Replaced vesa print functions with printf --- src/kernel/cmos/rtc.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/kernel/cmos/rtc.c') 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 #include #include +#include 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 -- cgit v1.2.3