From b905869a35f062a4e5072f10bec3a2ba3db0e365 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 30 Jul 2025 14:32:01 -0400 Subject: working userland with some invoke syscalls --- lib/log.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/log.c (limited to 'lib/log.c') 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 + +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); + +} -- cgit v1.2.1