[igt-dev] [PATCH i-g-t 1/7] tests/kms_vrr: Fix compiler warn on 32bit

Ville Syrjala ville.syrjala at linux.intel.com
Tue Jan 14 14:25:17 UTC 2020


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

../tests/kms_vrr.c:307:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_vrr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 7bc4fc8a20d1..73115fef7b21 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -304,7 +304,7 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,
 		while (get_time_ns() < target_ns);
 	}
 
-	igt_info("Completed %u flips, %u were in threshold for %luns.\n",
+	igt_info("Completed %u flips, %u were in threshold for %"PRIu64"ns.\n",
 		 total_flip, total_pass, rate_ns);
 
 	return total_flip ? ((total_pass * 100) / total_flip) : 0;
-- 
2.24.1



More information about the igt-dev mailing list