4 * Copyright (C) 1991, 1992 Linus Torvalds
7 /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
9 * Wirzenius wrote this portably, Torvalds fucked it up :-)
13 #if !defined(CONFIG_PANIC_HANG)
16 #include <linux/delay.h>
19 static void panic_finish(void) __attribute__ ((noreturn));
21 static void panic_finish(void)
24 #if defined(CONFIG_PANIC_HANG)
27 flush(); /* flush the panic message before reset */
29 do_reset(NULL, 0, 0, NULL);
35 void panic_str(const char *str)
41 void panic(const char *fmt, ...)
43 #if CONFIG_IS_ENABLED(PRINTF)
52 void __assert_fail(const char *assertion, const char *file, unsigned int line,
55 /* This will not return */
56 panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,