[PATCH i-g-t 11/33] cocci: Don't enforce use of logging functions in igt_core.c
Lyude
lyude at redhat.com
Fri Jun 7 23:07:59 UTC 2019
From: Lyude Paul <lyude at redhat.com>
I'm pretty sure this is the only place that it's perfectly OK to use
printf, since we may want to avoid igt_info() or igt_warn() adding any
additional formatting to the messages that we're printing.
Signed-off-by: Lyude Paul <lyude at redhat.com>
---
lib/igt.cocci | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 1ae218af..f28e04e7 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -47,7 +47,7 @@ expression list[n] Ep;
+ igt_warn_on_f(Ec, Ep);
// Enforce use of logging functions
-@@
+ at depends on !(file in "igt_core.c")@
expression list[n] Ep;
@@
(
--
2.21.0
More information about the Intel-gfx-trybot
mailing list