From: Kristian Høgsberg Date: Sat, 17 Dec 2011 21:05:44 +0000 (-0500) Subject: connection: Fix printf format warnings X-Git-Tag: 0.85.0~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b31149f92888eae01df6ff442166b91b35843b3;p=platform%2Fupstream%2Fwayland.git connection: Fix printf format warnings --- 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);