Signed-off-by: Daniel Vetter <daniel.vet...@ffwll.ch> --- 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@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx