11 const char *message, ...)
15 printf (
"User process ABORT at %s:%d in %s(): ",
file, line,
function);
void debug_backtrace(void)
Prints the call stack, that is, a list of addresses, one in each of the functions we are nested withi...
int vprintf(const char *format, va_list args)
The standard vprintf() function, which is like printf() but uses a va_list.
void debug_panic(const char *file, int line, const char *function, const char *message,...)
Halts the OS, printing the source file name, line number, and function name, plus a user-specific mes...
int printf(const char *format,...)
Writes formatted output to the console.
#define va_start(LIST, ARG)
__builtin_va_list va_list
GCC has <stdarg.h> functionality as built-ins, so all we need is to use it.