Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / include / linux / panic.h
blob9c8f17a41ce8ed965fb1015da3ba6e210ca4344d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TOOLS_LINUX_PANIC_H
3 #define _TOOLS_LINUX_PANIC_H
5 #include <stdarg.h>
6 #include <stdio.h>
7 #include <stdlib.h>
9 static inline void panic(const char *fmt, ...)
11 va_list argp;
13 va_start(argp, fmt);
14 vfprintf(stderr, fmt, argp);
15 va_end(argp);
16 exit(-1);
19 #endif