void _panic(void *caller, const char *fmt, ...) { va_list ap; va_start(ap, fmt); _dvprintf(fmt, ap); va_end(ap); abort(); }
void _panic(void *caller, const char *fmt, ...) { dprintf(ALWAYS, "panic (caller %p): ", caller); va_list ap; va_start(ap, fmt); _dvprintf(fmt, ap); va_end(ap); halt(); }
void _panic(void *caller, const char *fmt, ...) { dprintf(ALWAYS, "panic (frame %p): \n", __GET_FRAME()); dump_frame(__GET_FRAME()); dprintf(ALWAYS, "panic (caller %p): ", caller); va_list ap; va_start(ap, fmt); _dvprintf(fmt, ap); va_end(ap); halt(); }
static int __debug_stdio_vfprintf(void *ctx, const char *fmt, va_list ap) { return _dvprintf(fmt, ap); }