treewide: fix some format string issues

Use the proper specifier, and cast to a known type where the type
is not guaranteed by any standard.

See #3975
This commit is contained in:
Barnabás Pőcze 2024-04-23 18:58:26 +02:00 committed by Wim Taymans
parent a7a0e2072e
commit 8a4ff447d9
5 changed files with 8 additions and 7 deletions

View file

@ -832,7 +832,7 @@ static int negotiate_formats(struct data *data)
if ((res = spa_node_port_use_buffers(data->source_node,
SPA_DIRECTION_OUTPUT, 0, 0, data->source_buffers, 1)) < 0)
return res;
printf("allocated and assigned buffer(%ld) to source node %p\n", buffer_size, data->source_node);
printf("allocated and assigned buffer (%zu) to source node %p\n", buffer_size, data->source_node);
if ((res = spa_node_port_use_buffers(data->sink_node,
SPA_DIRECTION_INPUT, 0, 0, data->source_buffers, 1)) < 0)
return res;