From 09935c0ddeee477277fcf3bec4238fb94d756671 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 1 Jun 2021 14:00:30 -0700 Subject: [PATCH] freedreno/afuc: Print uintptr_t with PRIxPTR Fixes a compilation error on 32-bit. Fixes: bba61cef38b ("freedreno/afuc: Add emulator mode to afuc-disasm") Part-of: --- src/freedreno/afuc/emu-ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/afuc/emu-ui.c b/src/freedreno/afuc/emu-ui.c index 0af04808947..f1f7aeeb8fe 100644 --- a/src/freedreno/afuc/emu-ui.c +++ b/src/freedreno/afuc/emu-ui.c @@ -213,7 +213,7 @@ dump_gpumem(struct emu *emu, uintptr_t addr) { uint32_t val = emu_mem_read_dword(emu, addr); - printf(" MEM: 0x%016"PRIx64": ", addr); + printf(" MEM: 0x%016"PRIxPTR": ", addr); if (addr == emu->gpumem_written) { printdelta("0x%08x\n", val); } else {