From 8b556f7c8fc8b16fdeb7d23adb0e2fb54a8982fc Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 23 Oct 2014 17:54:44 +0200 Subject: tests/*: lib/igt.cocci found something! Signed-off-by: Daniel Vetter --- tests/gem_bad_reloc.c | 8 +++----- tests/kms_psr_sink_crc.c | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c index d0eb45cb..df0100fa 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 c22c16e4..edc24938 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 */ -- cgit v1.2.3