pan/decode: Use correct printf modifier for long int
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 27 Apr 2020 14:10:16 +0000 (16:10 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 30 Apr 2020 14:27:46 +0000 (16:27 +0200)
As reported by Coverity:
>>>     CID 1462605:  API usage errors  (PRINTF_ARGS)
>>>     Argument "p->zero5" to format specifier "%x" was expected to have type "unsigned int" but has type "unsigned long".

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>

src/panfrost/pandecode/decode.c

index 32effb30f1815096083544513d27c9c7b6b466e9..a76cb58b38ccf40422b46faecbb69129b3bdf699 100644 (file)
@@ -2817,7 +2817,7 @@ pandecode_vertex_tiler_postfix(const struct mali_vertex_tiler_postfix *p, int jo
 
         if (p->zero5) {
                 pandecode_msg("XXX: vertex only zero tripped");
-                pandecode_prop("zero5 = 0x%" PRIx32, p->zero5);
+                pandecode_prop("zero5 = 0x%" PRIx64, p->zero5);
         }
 
         MEMORY_PROP(p, position_varying);