All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/perf_pmu: Fix 64b printf-isms
@ 2018-02-22 10:33 ` Chris Wilson
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2018-02-22 10:33 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

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>
---
 tests/perf_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
-- 
2.16.1

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-22 13:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 10:33 [PATCH igt] igt/perf_pmu: Fix 64b printf-isms Chris Wilson
2018-02-22 10:33 ` [igt-dev] " Chris Wilson
2018-02-22 11:13 ` Tvrtko Ursulin
2018-02-22 11:13   ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2018-02-22 13:21 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.