4 * Copyright (C) 1991, 1992 Linus Torvalds
7 /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
9 * Wirzenius wrote this portably, Torvalds fucked it up :-)
14 #if !defined(CONFIG_PANIC_HANG)
17 #include <linux/delay.h>
20 static void panic_finish(void) __attribute__ ((noreturn));
22 static void panic_finish(void)
25 #if defined(CONFIG_PANIC_HANG)
28 flush(); /* flush the panic message before reset */
30 do_reset(NULL, 0, 0, NULL);
36 void panic_str(const char *str)
42 void panic(const char *fmt, ...)
44 #if CONFIG_IS_ENABLED(PRINTF)
53 void __assert_fail(const char *assertion, const char *file, unsigned int line,
56 /* This will not return */
57 panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,