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)
17 static void panic_finish(void) __attribute__ ((noreturn));
19 static void panic_finish(void)
22 #if defined(CONFIG_PANIC_HANG)
25 udelay(100000); /* allow messages to go out */
26 do_reset(NULL, 0, 0, NULL);
32 void panic_str(const char *str)
38 void panic(const char *fmt, ...)
40 #if CONFIG_IS_ENABLED(PRINTF)
49 void __assert_fail(const char *assertion, const char *file, unsigned int line,
52 /* This will not return */
53 panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,