[11/33] cocci: Don't enforce use of logging functions in igt_core.c

Submitted by Lyude Paul on June 7, 2019, 11:07 p.m.

Details

Message ID 20190607230821.4488-11-lyude@redhat.com
State New
Headers show
Series "Series without cover letter" ( rev: 2 1 ) in IGT - Trybot

Not browsing as part of any series.

Commit Message

Lyude Paul June 7, 2019, 11:07 p.m.
From: Lyude Paul <lyude@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@redhat.com>
---
 lib/igt.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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
-@@
+@depends on !(file in "igt_core.c")@
 expression list[n] Ep;
 @@
 (