[30/33] Run igt_logging_funcs.cocci

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

Details

Message ID 20190607230821.4488-30-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:08 p.m.
From: Lyude Paul <lyude@redhat.com>

Most of this was false positives, but there were a couple of correct
matches worth fixing.

Signed-off-by: Lyude Paul <lyude@redhat.com>
---
 lib/igt_gt.c      | 2 +-
 tests/kms_lease.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index aeb6d6ac..7295ab00 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -513,7 +513,7 @@  int igt_setup_clflush(void)
 
 void igt_clflush_range(void *addr, int size)
 {
-	fprintf(stderr, "igt_clflush_range() unsupported\n");
+	igt_warn("igt_clflush_range() unsupported\n");
 }
 #endif
 
diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index b389b952..5f391ec4 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -511,8 +511,8 @@  static void atomic_implicit_crtc(data_t *data)
 		if (strcmp(prop->name, "CRTC_ID") == 0)
 			crtc_id_prop = props->props[i];
 
-		printf("prop name %s, prop id %u, prop id %u\n",
-		       prop->name, props->props[i], prop->prop_id);
+		igt_info("prop name %s, prop id %u, prop id %u\n", prop->name,
+			 props->props[i], prop->prop_id);
 		drmModeFreeProperty(prop);
 		if (crtc_id_prop)
 			break;