common: fix a few incorrect mrp_debug usages.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 11 Dec 2014 12:12:11 +0000 (14:12 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 12 Dec 2014 15:37:33 +0000 (17:37 +0200)
src/common/websocklib.c
src/common/wsck-transport.c

index b056eca..0595c46 100644 (file)
@@ -1801,7 +1801,7 @@ static int wsl_event(lws_ctx_t *ws_ctx, lws_t *ws, lws_event_t event,
 
     case LWS_CALLBACK_RECEIVE:
     case LWS_CALLBACK_CLIENT_RECEIVE:
-        mrp_debug("%d bytes received on websocket %p/%p", len, ws, user);
+        mrp_debug("%zu bytes received on websocket %p/%p", len, ws, user);
         mrp_debug("%zd remaining from this message",
                   libwebsockets_remaining_packet_payload(ws));
 
index 7f4a67b..fe44271 100644 (file)
@@ -760,7 +760,7 @@ static void recv_cb(wsl_sck_t *sck, void *data, size_t size, void *user_data,
 
     MRP_UNUSED(proto_data);
 
-    mrp_debug("%d bytes on websocket %p", size, sck);
+    mrp_debug("%zu bytes on websocket %p", size, sck);
 
     MRP_TRANSPORT_BUSY(t, {
             if (t->mode != MRP_TRANSPORT_MODE_CUSTOM)
@@ -912,7 +912,7 @@ static void http_connection_cb(wsl_ctx_t *ctx, char *addr, const char *protocol,
             mrp_log_error("failed to create new HTTP client");
     }
     else
-        mrp_debug("rejecting pure HTTP client for context %p");
+        mrp_debug("rejecting pure HTTP client for context %p", ctx);
 }
 
 
@@ -949,7 +949,7 @@ static void http_req_cb(wsl_sck_t *sck, void *data, size_t size,
     type = http_mapuri(c, uri, path, sizeof(path));
 
     if (type != NULL) {
-        mrp_debug("mapped to '%s' (%s)", uri, path, type);
+        mrp_debug("mapped to '%s' (%s)", path, type);
         wsl_serve_http_file(sck, path, type);
     }
     else