Mesa (main): rtasm: fix printf specifier for ptrdiff_t

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 9 06:44:06 UTC 2022


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

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Feb  7 23:36:01 2022 -0500

rtasm: fix printf specifier for ptrdiff_t

In practice it's a small number, but new gcc versions complain.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Acked-by: Emma Anholt <emma at anholt.net>
Tested-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14922>

---

 src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index ddd65fb6a08..1da983c5b2d 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -89,7 +89,7 @@ void x86_print_reg( struct x86_reg reg )
       foo++;                                    \
    if  (*foo)                                   \
       foo++;                                    \
-   debug_printf( "\n%4x %14s ", p->csr - p->store, foo );             \
+   debug_printf( "\n%4tx %14s ", p->csr - p->store, foo );             \
 } while (0)
 
 #define DUMP_I( I ) do {                        \



More information about the mesa-commit mailing list