mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 23:36:30 +00:00
lib/igt.cocci: Also add rule to use igt_warn_on_f
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
9eb9345f99
commit
46811c849a
@ -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
|
||||
@@
|
||||
|
Loading…
x
Reference in New Issue
Block a user