aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/cmos/rtc.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-30 16:21:57 +0100
committerMarvin Borner2019-11-30 16:21:57 +0100
commitac947d45c288f62e927895afe7cd6a722ffdd8f8 (patch)
treecb9ed1bc1713c484b6846f068dca98e0dfc0cbc0 /src/kernel/cmos/rtc.c
parent0e94325936030990ac95b9ca90382aa265c95818 (diff)
Replaced vesa print functions with printf
Diffstat (limited to 'src/kernel/cmos/rtc.c')
-rw-r--r--src/kernel/cmos/rtc.c15
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