aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/perfcntrs
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-11-27 10:44:57 -0500
committerJonathan Marek <[email protected]>2019-11-27 12:11:57 -0500
commit24cde37e8d26332c7e5b13c2793efc44677180c6 (patch)
treea594cd04b9ec09af942d85590a3c97847595fa1c /src/freedreno/perfcntrs
parentbaab4017b90d25bcf213a4d5403123e8c5c35b87 (diff)
freedreno/perfcntrs/fdperf: fix u64 print on 32-bit builds
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/perfcntrs')
-rw-r--r--src/freedreno/perfcntrs/fdperf.c3
1 files changed, 2 insertions, 1 deletions
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 <unistd.h>
#include <curses.h>
#include <libconfig.h>
+#include <inttypes.h>
#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: