| * Copyright (C) 1991, 1992 Linus Torvalds |
| /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */ |
| * Wirzenius wrote this portably, Torvalds fucked it up :-) |
| #if !defined(CONFIG_PANIC_HANG) |
| static void panic_finish(void) __attribute__ ((noreturn)); |
| static void panic_finish(void) |
| #if defined(CONFIG_PANIC_HANG) |
| flush(); /* flush the panic message before reset */ |
| do_reset(NULL, 0, 0, NULL); |
| void panic_str(const char *str) |
| void panic(const char *fmt, ...) |
| #if CONFIG_IS_ENABLED(PRINTF) |
| void __assert_fail(const char *assertion, const char *file, unsigned int line, |
| /* This will not return */ |
| panic("%s:%u: %s: Assertion `%s' failed.", file, line, function, |