mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
connection: Fix printf format warnings
This commit is contained in:
parent
34901868b8
commit
1b31149f92
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
|
||||||
return closure;
|
return closure;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
printf("request too big to marshal, maximum size is %d\n",
|
printf("request too big to marshal, maximum size is %lu\n",
|
||||||
sizeof closure->buffer);
|
sizeof closure->buffer);
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -555,7 +555,7 @@ wl_connection_demarshal(struct wl_connection *connection,
|
||||||
|
|
||||||
extra_space = wl_message_size_extra(message);
|
extra_space = wl_message_size_extra(message);
|
||||||
if (sizeof closure->buffer < size + extra_space) {
|
if (sizeof closure->buffer < size + extra_space) {
|
||||||
printf("request too big to demarshal, maximum %d actual %d\n",
|
printf("request too big to demarshal, maximum %lu actual %d\n",
|
||||||
sizeof closure->buffer, size + extra_space);
|
sizeof closure->buffer, size + extra_space);
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
wl_connection_consume(connection, size);
|
wl_connection_consume(connection, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue