summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2019-06-05 08:44:05 +0200
committerTomeu Vizoso <[email protected]>2019-06-05 10:40:19 +0200
commitc7a6e0745481ea99d6f02b8b8dc348ba85c105f4 (patch)
treecc320881f06c387ae21baa137aa12c149faadd65 /src
parent8d4f68ee20353aa292c83571916f1385f0228bba (diff)
panfrost: bifrost: Fix format string in disassembler
The compiler configuration was hardened to fail on format warnings and things stopped building. Fixes: c9c1e2610647 ("mesa: prevent common string formatting security issues") Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-By: Ryan Houdek <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/bifrost/disassemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/bifrost/disassemble.c b/src/gallium/drivers/panfrost/bifrost/disassemble.c
index daadf257896..03ade19a689 100644
--- a/src/gallium/drivers/panfrost/bifrost/disassemble.c
+++ b/src/gallium/drivers/panfrost/bifrost/disassemble.c
@@ -2195,7 +2195,7 @@ bool dump_clause(uint32_t *words, unsigned *size, unsigned offset, bool verbose)
if (verbose) {
for (unsigned i = 0; i < num_consts; i++) {
- printf("# const%d: %08lx\n", 2 * i, consts[i] & 0xffffffff);
+ printf("# const%d: %08" PRIx64 "\n", 2 * i, consts[i] & 0xffffffff);
printf("# const%d: %08" PRIx64 "\n", 2 * i + 1, consts[i] >> 32);
}
}