diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-17 16:05:44 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-17 16:05:44 -0500 |
| commit | 1b31149f92888eae01df6ff442166b91b35843b3 (patch) | |
| tree | c84d40cdd5f57600053457bb0f154d4e64482b4e /src | |
| parent | Increase closure buffer size and fail gracefully for too big closures. (diff) | |
| download | wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar.gz wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar.bz2 wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar.lz wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar.xz wayland-1b31149f92888eae01df6ff442166b91b35843b3.tar.zst wayland-1b31149f92888eae01df6ff442166b91b35843b3.zip | |
connection: Fix printf format warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.c b/src/connection.c index 06b6130..4ac5bf8 100644 --- a/src/connection.c +++ b/src/connection.c @@ -525,7 +525,7 @@ wl_connection_vmarshal(struct wl_connection *connection, return closure; 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); errno = ENOMEM; return NULL; @@ -555,7 +555,7 @@ wl_connection_demarshal(struct wl_connection *connection, extra_space = wl_message_size_extra(message); 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); errno = ENOMEM; wl_connection_consume(connection, size); |
