From 24cde37e8d26332c7e5b13c2793efc44677180c6 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 27 Nov 2019 10:44:57 -0500 Subject: [PATCH] freedreno/perfcntrs/fdperf: fix u64 print on 32-bit builds Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- src/freedreno/perfcntrs/fdperf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/perfcntrs/fdperf.c b/src/freedreno/perfcntrs/fdperf.c index 7e562367df6..45d2a18ebe2 100644 --- a/src/freedreno/perfcntrs/fdperf.c +++ b/src/freedreno/perfcntrs/fdperf.c @@ -39,6 +39,7 @@ #include #include #include +#include #include "drm/freedreno_drmif.h" #include "drm/freedreno_ringbuffer.h" @@ -369,7 +370,7 @@ find_device(void) free(b); - printf("i/o region at %08lx (size: %x)\n", dev.base, dev.size); + printf("i/o region at %08"PRIu64" (size: %x)\n", dev.base, dev.size); /* try MAX_FREQ first as that will work regardless of old dt * dt bindings vs upstream bindings: -- 2.30.2