summaryrefslogtreecommitdiff
path: root/tests/perf_pmu.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-02-22 10:30:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2018-02-22 11:15:17 +0000
commitf09f5c6a197424cef702222d6864416ac1f4fd23 (patch)
tree352f5320d90e20f630b8208151b05551978bf33b /tests/perf_pmu.c
parentaf65798b6674e28816bd13c096963c2d7fcdd856 (diff)
igt/perf_pmu: Fix 64b printf-isms
My bad, perf_pmu.c: In function ‘accuracy’: perf_pmu.c:1533:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Wformat] perf_pmu.c:1533:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘uint64_t’ [-Wformat] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/perf_pmu.c')
-rw-r--r--tests/perf_pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index b9c4dd58..3bbb18d2 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1511,7 +1511,7 @@ accuracy(int gem_fd, const struct intel_execution_engine2 *e,
idle_ns += total_idle_ns;
expected = (double)busy_ns / (busy_ns + idle_ns);
- igt_info("%u: busy %luus, idle %luus: %.2f%% (target: %lu%%)\n",
+ igt_info("%u: busy %"PRIu64"us, idle %"PRIu64"us: %.2f%% (target: %lu%%)\n",
pass, busy_ns / 1000, idle_ns / 1000,
100 * expected, target_busy_pct);
write(link[1], &expected, sizeof(expected));