summaryrefslogtreecommitdiffhomepage
path: root/src/loader/log.c
diff options
context:
space:
mode:
authorMarvin Borner2021-07-07 00:40:28 +0200
committerMarvin Borner2021-07-07 00:40:28 +0200
commit736d2b820d968915516d1662b84f9995d53895a3 (patch)
treee38c1f01be3d0d5e99677c921b971f543b586240 /src/loader/log.c
parentb2880945ae17ad857bd425540acd3dc75b2cff6b (diff)
Started graphical selection interface
Diffstat (limited to 'src/loader/log.c')
-rw-r--r--src/loader/log.c15
1 files changed, 14 insertions, 1 deletions
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);
}