feat: provide some libc routines only for testing
[lunaix-os.git] / lunaix-os / libs / ulibc / printf.c
diff --git a/lunaix-os/libs/ulibc/printf.c b/lunaix-os/libs/ulibc/printf.c
deleted file mode 100644 (file)
index 86c0b18..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <klibc/stdio.h>
-#include <lunaix/spike.h>
-#include <ulibc/stdio.h>
-
-#include <usr/unistd.h>
-
-// This is VERY bad implementation as it mixes both kernel and user space
-// code together. It is here however, just for the convenience of our testing
-// program.
-// FIXME Eliminate this when we're able to load program.
-
-void __USER__
-printf(const char* fmt, ...)
-{
-    const char buf[512];
-    va_list args;
-    va_start(args, fmt);
-
-    size_t sz = __ksprintf_internal(buf, fmt, 512, args);
-
-    write(stdout, buf, sz);
-
-    va_end(args);
-}
\ No newline at end of file