Mesa (master): pan/decode: Use correct printf modifier for long int
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 30 14:43:00 UTC 2020
Module: Mesa
Branch: master
Commit: 0edc29020b2830497f31b06898ca26715ecfd001
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0edc29020b2830497f31b06898ca26715ecfd001
Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date: Mon Apr 27 16:10:16 2020 +0200
pan/decode: Use correct printf modifier for long int
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 at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>
---
src/panfrost/pandecode/decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index 32effb30f18..a76cb58b38c 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -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);
More information about the mesa-commit
mailing list