repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
9c8f17a41ce8ed965fb1015da3ba6e210ca4344d
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