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

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


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

../tests/perf.c:890:12: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]

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

diff --git a/tests/perf.c b/tests/perf.c
index 982277dfd0a7..a837551cb0a9 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -887,7 +887,7 @@ init_sys_info(void)
 	igt_assert_neq(devid, 0);
 
 	timestamp_frequency = get_cs_timestamp_frequency();
-	igt_debug("timestamp_frequency = %lu\n", timestamp_frequency);
+	igt_debug("timestamp_frequency = %"PRIu64"\n", timestamp_frequency);
 	igt_assert_neq(timestamp_frequency, 0);
 
 	if (IS_HASWELL(devid)) {
-- 
2.24.1



More information about the igt-dev mailing list