Mesa (main): freedreno/afuc: Print uintptr_t with PRIxPTR

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 2 04:14:49 UTC 2021


Module: Mesa
Branch: main
Commit: 09935c0ddeee477277fcf3bec4238fb94d756671
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09935c0ddeee477277fcf3bec4238fb94d756671

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Jun  1 14:00:30 2021 -0700

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11118>

---

 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 {



More information about the mesa-commit mailing list