mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
util: Match printf format to silence warning.
This commit is contained in:
parent
a5888d3113
commit
121aa3cfcb
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ void
|
|||
debug_describe_resource(char* buf, const struct pipe_resource *ptr)
|
||||
{
|
||||
if(ptr->target == PIPE_BUFFER)
|
||||
util_sprintf(buf, "pipe_buffer<%u>", util_format_get_stride(ptr->format, ptr->width0));
|
||||
util_sprintf(buf, "pipe_buffer<%u>", (unsigned)util_format_get_stride(ptr->format, ptr->width0));
|
||||
else if(ptr->target == PIPE_TEXTURE_1D)
|
||||
util_sprintf(buf, "pipe_texture1d<%u,%s,%u>", ptr->width0, util_format_short_name(ptr->format), ptr->last_level);
|
||||
else if(ptr->target == PIPE_TEXTURE_2D)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue