]> Git Repo - linux.git/blob - tools/include/linux/panic.h
Linux 6.14-rc3
[linux.git] / tools / include / linux / panic.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TOOLS_LINUX_PANIC_H
3 #define _TOOLS_LINUX_PANIC_H
4
5 #include <stdarg.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8
9 static inline void panic(const char *fmt, ...)
10 {
11         va_list argp;
12
13         va_start(argp, fmt);
14         vfprintf(stderr, fmt, argp);
15         va_end(argp);
16         exit(-1);
17 }
18
19 #endif
This page took 0.031211 seconds and 4 git commands to generate.