git://git.qemu.org
/
qemu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
tracetool: carefully define SDT_USE_VARIADIC
[qemu.git]
/
scripts
/
coccinelle
/
use-error_fatal.cocci
1
@@
2
type T;
3
identifier FUN, RET;
4
expression list ARGS;
5
expression ERR, EC, FAIL;
6
@@
7
(
8
- T RET = FUN(ARGS, &ERR);
9
+ T RET = FUN(ARGS, &error_fatal);
10
|
11
- RET = FUN(ARGS, &ERR);
12
+ RET = FUN(ARGS, &error_fatal);
13
|
14
- FUN(ARGS, &ERR);
15
+ FUN(ARGS, &error_fatal);
16
)
17
- if (FAIL) {
18
- error_report_err(ERR);
19
- exit(EC);
20
- }