1 // SPDX-License-Identifier: GPL-2.0
3 * Callers outside of misc.c need access to the error reporting routines,
4 * but the *_putstr() functions need to stay in misc.c because of how
5 * memcpy() and memmove() are defined for the compressed boot environment.
20 error_putstr(" -- System halted");
26 /* EFI libstub provides vsnprintf() */
27 #ifdef CONFIG_EFI_STUB
28 void panic(const char *fmt, ...)
30 static char buf[1024];
35 len = vsnprintf(buf, sizeof(buf), fmt, args);
38 if (len && buf[len - 1] == '\n')