From 1b31149f92888eae01df6ff442166b91b35843b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Sat, 17 Dec 2011 16:05:44 -0500 Subject: [PATCH] connection: Fix printf format warnings --- src/connection.c | 4 ++-- 1 file 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); -- 2.7.4