diff options
Diffstat (limited to 'libc/print.c')
-rw-r--r-- | libc/print.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/print.c b/libc/print.c index 6d97599..3f6c1cd 100644 --- a/libc/print.c +++ b/libc/print.c @@ -213,14 +213,18 @@ int print(const char *str) return strlen(str); } +#endif + void panic(const char *format, ...) { va_list ap; va_start(ap, format); +#ifdef kernel vprintf(format, ap); +#else + vfprintf(PATH_ERR, format, ap); +#endif va_end(ap); assert(0); } - -#endif |