From 89a9ad0b6652065ea03db23ced52d7129295572d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 5 Dec 2013 16:00:49 +0100 Subject: Fix 64bit size_t in format string. --- src/munia_proto.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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()) { -- cgit v1.2.3