Nucleus
Barry Kernel printf routines 120a213 (3 years, 2 months ago)
diff --git a/include/nucleus/panic.h b/include/nucleus/kernel.h
similarity index 52%
rename from include/nucleus/panic.h
rename to include/nucleus/kernel.h
index e51df78..50bba3d 100644
--- a/include/nucleus/panic.h
+++ b/include/nucleus/kernel.h
@@ -1,9 +1,12 @@
-#ifndef _NUCLEUS_PANIC_H
-#define _NUCLEUS_PANIC_H
+#ifndef _NUCLEUS_KERNEL_H
+#define _NUCLEUS_KERNEL_H
-int sprintf(char *buf, char *fmt, ...);
+#include <stdarg.h>
+
+int vsprintf(char *buf, const char *fmt, va_list args);
+int sprintf(char *buf, const char *fmt, ...);
+void dbgprintf(char *str);
void kprintf(char *fmt, ...);
-void dbgprintf(char *msg);
_Noreturn void panic(char *fmt, ...);
#define ASSERT(c) ({ \