From: Jonathan Marek Date: Wed, 27 Nov 2019 15:44:57 +0000 (-0500) Subject: freedreno/perfcntrs/fdperf: fix u64 print on 32-bit builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24cde37e8d26332c7e5b13c2793efc44677180c6;p=mesa.git freedreno/perfcntrs/fdperf: fix u64 print on 32-bit builds Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- 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: