Commit 13735c4f authored by Vinson Lee's avatar Vinson Lee Committed by Marge Bot
Browse files

panfrost: Fix printf format specifier.

bifrost_sampler_descriptor.zero1 is of type uint8_t.

Fix warning reported by Coverity.

Invalid type in argument to printf format specifier (PRINTF_ARGS)
invalid_type: Argument s->zero1 to format specifier %lx was expected to
have type unsigned long but has type unsigned char.

Fixes: 6148d1be

 ("panfrost: Fix size of bifrost sampler descriptor")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!5248>
parent 4925fb97
Pipeline #153871 passed with stages
in 33 minutes and 7 seconds
......@@ -2456,7 +2456,7 @@ pandecode_samplers(mali_ptr samplers, unsigned sampler_count, int job_no, bool i
if (s->zero1 || s->zero2 || s->zero3 || s->zero4) {
pandecode_msg("XXX: sampler zero tripped\n");
pandecode_prop("zero = 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64 "\n", s->zero1, s->zero2, s->zero3, s->zero4);
pandecode_prop("zero = 0x%" PRIx8 ", 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64 "\n", s->zero1, s->zero2, s->zero3, s->zero4);
}
pandecode_indent--;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment