summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-12-17 16:05:44 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-12-17 16:05:44 -0500
commit1b31149f92888eae01df6ff442166b91b35843b3 (patch)
treec84d40cdd5f57600053457bb0f154d4e64482b4e
parent34901868b8d037c3ec230a6828aa75c79ffae59c (diff)
connection: Fix printf format warnings
-rw-r--r--src/connection.c4
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);