summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()) {