From 736d2b820d968915516d1662b84f9995d53895a3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Jul 2021 00:40:28 +0200 Subject: Started graphical selection interface --- src/loader/log.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/loader/log.c') diff --git a/src/loader/log.c b/src/loader/log.c index b0f03b9..a22f5d2 100644 --- a/src/loader/log.c +++ b/src/loader/log.c @@ -150,9 +150,10 @@ static void vga_print(const char *data) } /** - * Universal print function + * Formatted print functions */ +// Serial void log(const char *format, ...) { char buf[1024] = { 0 }; @@ -163,5 +164,17 @@ void log(const char *format, ...) va_end(ap); serial_print(buf); +} + +// VGA log +void vga_log(const char *format, ...) +{ + char buf[1024] = { 0 }; + + va_list ap; + va_start(ap, format); + vsnprintf(buf, sizeof(buf), format, ap); + va_end(ap); + vga_print(buf); } -- cgit v1.2.3