[Intel-gfx] [PATCH] tests/*: lib/igt.cocci found something!

Daniel Vetter daniel.vetter at ffwll.ch
Thu Oct 23 17:55:06 CEST 2014


Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/gem_bad_reloc.c    | 8 +++-----
 tests/kms_psr_sink_crc.c | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c
index d0eb45cbc7cd..df0100fa419f 100644
--- a/tests/gem_bad_reloc.c
+++ b/tests/gem_bad_reloc.c
@@ -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);
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index c22c16e4a519..edc249380cbe 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -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 */
-- 
2.1.1




More information about the Intel-gfx mailing list