Mesa (main): r300: use %u specifiers when printing unsigned stats values

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 24 21:41:11 UTC 2022


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

Author: Pavel Ondračka <pavel.ondracka at gmail.com>
Date:   Fri Feb 18 08:53:53 2022 +0100

r300: use %u specifiers when printing unsigned stats values

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6019
Signed-off-by: Pavel Ondračka <pavel.ondracka at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15077>

---

 src/gallium/drivers/r300/compiler/radeon_compiler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r300/compiler/radeon_compiler.c b/src/gallium/drivers/r300/compiler/radeon_compiler.c
index a312db8580a..3a21af0e8b5 100644
--- a/src/gallium/drivers/r300/compiler/radeon_compiler.c
+++ b/src/gallium/drivers/r300/compiler/radeon_compiler.c
@@ -370,7 +370,7 @@ static void print_stats(struct radeon_compiler * c)
 	 * only the FS has, becasue shader-db's report.py wants all shaders to
 	 * have the same set.
 	 */
-	pipe_debug_message(c->debug, SHADER_INFO, "%s shader: %d inst, %d vinst, %d sinst, %d flowcontrol, %d tex, %d presub, %d omod, %d temps, %d consts, %d lits",
+	pipe_debug_message(c->debug, SHADER_INFO, "%s shader: %u inst, %u vinst, %u sinst, %u flowcontrol, %u tex, %u presub, %u omod, %u temps, %u consts, %u lits",
 	                   c->type == RC_VERTEX_PROGRAM ? "VS" : "FS",
 	                   s.num_insts, s.num_rgb_insts, s.num_alpha_insts,
 	                   s.num_fc_insts, s.num_tex_insts, s.num_presub_ops,



More information about the mesa-commit mailing list