[PATCH i-g-t 30/33] Run igt_logging_funcs.cocci

Lyude lyude at redhat.com
Fri Jun 7 23:08:18 UTC 2019


From: Lyude Paul <lyude at redhat.com>

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

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

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;
-- 
2.21.0



More information about the Intel-gfx-trybot mailing list