From b7c7963f160f951fbc8ef10923a5264fec28cbd7 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 17 Apr 2012 15:16:38 +0300 Subject: [PATCH] Fix printf format warnings connection.c:530: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' /connection.c:560: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' Signed-off-by: Pekka Paalanen --- src/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index 2795481..147dc42 100644 --- a/src/connection.c +++ b/src/connection.c @@ -558,7 +558,7 @@ wl_connection_vmarshal(struct wl_connection *connection, return closure; err: - printf("request too big to marshal, maximum size is %lu\n", + printf("request too big to marshal, maximum size is %zu\n", sizeof closure->buffer); errno = ENOMEM; return NULL; @@ -588,7 +588,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 %lu actual %d\n", + printf("request too big to demarshal, maximum %zu actual %d\n", sizeof closure->buffer, size + extra_space); errno = ENOMEM; wl_connection_consume(connection, size); -- 2.7.4