summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/log.c b/lib/log.c
new file mode 100644
index 0000000..6bc770d
--- /dev/null
+++ b/lib/log.c
@@ -0,0 +1,14 @@
+#include "print.h"
+#include <stdarg.h>
+
+void
+_klogf(const char *file, const char *func, int line, const char *fmt, ...)
+{
+ kprintf("%s:%i ", func, line);
+
+ va_list ap;
+ va_start(ap, fmt);
+ kvprintf(fmt, ap);
+ va_end(ap);
+
+}