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)
18 static void panic_finish(void) __attribute__ ((noreturn));
20 static void panic_finish(void)
23 #if defined(CONFIG_PANIC_HANG)
26 udelay(100000); /* allow messages to go out */
27 do_reset(NULL, 0, 0, NULL);
33 void panic_str(const char *str)
39 void panic(const char *fmt, ...)
41 #if CONFIG_IS_ENABLED(PRINTF)
50 void __assert_fail(const char *assertion, const char *file, unsigned int line,
53 /* This will not return */
54 panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,