aboutsummaryrefslogtreecommitdiff
path: root/sys/base/error/vpanicf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/base/error/vpanicf.c')
-rw-r--r--sys/base/error/vpanicf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/base/error/vpanicf.c b/sys/base/error/vpanicf.c
new file mode 100644
index 0000000..bea97ac
--- /dev/null
+++ b/sys/base/error/vpanicf.c
@@ -0,0 +1,11 @@
+#include "internal.h"
+
+void
+vpanicf(byte* fmt, va_list args)
+{
+ printf("panic: ");
+ vprintf(fmt, args);
+ printf("\n");
+
+ exit(1);
+}