[PATCH i-g-t] gem_wait: Use PRIu64 in format string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



../../tests/gem_wait.c: In function ‘render_timeout’:
../../tests/gem_wait.c:182:3: warning: format ‘%llu’ expects argument of type
‘long long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=]

   igt_info("Finished with %llu time remaining\n", timeout);

Cc: Daniel Vetter <daniel.vetter@xxxxxxxx>
Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 tests/gem_wait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gem_wait.c b/tests/gem_wait.c
index 1320c7b..39d20b0 100644
--- a/tests/gem_wait.c
+++ b/tests/gem_wait.c
@@ -179,7 +179,7 @@ static void render_timeout(int fd)
 	if (timeout ==  (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC))
 		igt_info("Buffer was already done!\n");
 	else {
-		igt_info("Finished with %llu time remaining\n", timeout);
+		igt_info("Finished with %" PRIu64 " time remaining\n", timeout);
 	}
 
 	/* check that polling with timeout=0 works. */
-- 
1.8.3.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux