Skip to contentSkip to conversation

tests/*: lib/igt.cocci found something!

PATCH New Daniel Vetter 1 participant 1 message Oct 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/*: lib/igt.cocci found something!

---
 tests/gem_bad_reloc.c    | 8 +++-----
 tests/kms_psr_sink_crc.c | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)
tests/gem_bad_reloc.c +3 -5
index d0eb45cbc7cd..df0100fa419f 100644
@@ -182,11 +182,9 @@ static int negative_reloc_blt(int fd)
 
 	if (0) {
 		for (i = 0; i < 1024; i += 8)
-			printf("%08x %08x %08x %08x %08x %08x %08x %08x\n",
-			       buf[i + 0], buf[i + 1],
-			       buf[i + 2], buf[i + 3],
-			       buf[i + 4], buf[i + 5],
-			       buf[i + 6], buf[i + 7]);
+			igt_info("%08x %08x %08x %08x %08x %08x %08x %08x\n",
+				 buf[i + 0], buf[i + 1], buf[i + 2], buf[i + 3],
+				 buf[i + 4], buf[i + 5], buf[i + 6], buf[i + 7]);
 	}
 	for (i = 0; i < 1024; i++)
 		igt_assert_eq(buf[i], 0xc0ffee ^ i);
tests/kms_psr_sink_crc.c +1 -1
index c22c16e4a519..edc249380cbe 100644
@@ -351,7 +351,7 @@ static void test_crc(data_t *data)
 		get_sink_crc(data, crc);
 		igt_assert(strcmp(ref_crc, crc) == 0);
 
-		fprintf(stdout, "Waiting 10s...\n");
+		igt_info("Waiting 10s...\n");
 		sleep(10);
 
 		/* Now lets print black to change the screen */
Signature · 1 line
2.1.1