Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx> --- lib/igt.cocci | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/igt.cocci b/lib/igt.cocci index a0573f5d4e4f..ff0de31c9c48 100644 --- 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 @@ -- 2.0.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx