summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 16:00:49 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 16:00:49 +0100
commit89a9ad0b6652065ea03db23ced52d7129295572d (patch)
tree437cba49421a82be6a57df427597f3fd2ac03b76
parent23d78e5be84df3a46867ded2ad3275ecaca5df9a (diff)
Fix 64bit size_t in format string.
-rw-r--r--src/munia_proto.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/munia_proto.cc b/src/munia_proto.cc
index 8311f90..0f03a84 100644
--- a/src/munia_proto.cc
+++ b/src/munia_proto.cc
@@ -192,9 +192,9 @@ int callback_lws_task(struct libwebsocket_context * context,
data.append((char*)in, len);
MessageList mlst = parse_msg(data);
- DEBUG(proto, "Handling %d incoming message\n", mlst.size());
+ DEBUG(proto, "Handling %d incoming message\n", (int)mlst.size());
MessageList omsgs = handle_msg(mlst, wsi);
- DEBUG(proto, "Handling %d outgoing messages\n", omsgs.size());
+ DEBUG(proto, "Handling %d outgoing messages\n", (int)omsgs.size());
MessageList::iterator omi = omsgs.begin();
while(omi != omsgs.end()) {
@@ -253,10 +253,11 @@ int callback_lws_task(struct libwebsocket_context * context,
}
} else {
- DEBUG(proto, "%d nodes affected by command\n", omi->nodes.size());
+ DEBUG(proto, "%d nodes affected by command\n",
+ (int)omi->nodes.size());
ObserverList clients = connection_handler.observerlist(omi->nodes);
- DEBUG(proto, "Writing message to %d clients\n", clients.size());
+ DEBUG(proto, "Writing message to %d clients\n", (int)clients.size());
ObserverList::iterator ci = clients.begin();
while(ci != clients.end()) {