projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb9345
)
lib/igt.cocci: Also add rule to use igt_warn_on_f
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 13:45:30 +0000
(15:45 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 16:12:42 +0000
(18:12 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/igt.cocci
patch
|
blob
|
history
diff --git
a/lib/igt.cocci
b/lib/igt.cocci
index
dcb7bbc
..
e944c7d
100644
(file)
--- a/
lib/igt.cocci
+++ b/
lib/igt.cocci
@@
-22,6
+22,14
@@
expression list[n] Ep;
- igt_skip(Ep);
- }
+ igt_skip_on_f(Ec, Ep);
+@@
+expression Ec;
+expression list[n] Ep;
+@@
+- if (Ec) {
+- igt_warn(Ep);
+- }
++ igt_warn_on_f(Ec, Ep);
// Enforce use of logging functions
@@