From 65ba015d6c1f248d36ad01a653bc49637804b15b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 10 Aug 2025 15:46:33 -0400 Subject: working usermode objdir iteration --- lib/libjove/kprintf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/libjove/kprintf.c (limited to 'lib/libjove/kprintf.c') diff --git a/lib/libjove/kprintf.c b/lib/libjove/kprintf.c new file mode 100644 index 0000000..c04756a --- /dev/null +++ b/lib/libjove/kprintf.c @@ -0,0 +1,16 @@ +#include +#include +#include +#include + +void +jove_kprintf(const char *restrict fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + char buffer[256]; + vsnprintf(buffer, 256, fmt, ap); + va_end(ap); + + for(char *c = buffer; *c; c++) _syscall_debug_putc(*c); +} -- cgit v1.2.1