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>
19 static void panic_finish(void) __attribute__ ((noreturn));
21 static void panic_finish(void)
24 #if defined(CONFIG_PANIC_HANG)
27 udelay(100000); /* allow messages to go out */
28 do_reset(NULL, 0, 0, NULL);
34 void panic_str(const char *str)
40 void panic(const char *fmt, ...)
42 #if CONFIG_IS_ENABLED(PRINTF)
51 void __assert_fail(const char *assertion, const char *file, unsigned int line,
54 /* This will not return */
55 panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,