From ce40ae55396e59b9b9b1387b4514db903cbcf35c Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Thu, 11 Dec 2014 14:12:11 +0200 Subject: [PATCH] common: fix a few incorrect mrp_debug usages. --- src/common/websocklib.c | 2 +- src/common/wsck-transport.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/websocklib.c b/src/common/websocklib.c index b056eca..0595c46 100644 --- a/src/common/websocklib.c +++ b/src/common/websocklib.c @@ -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)); diff --git a/src/common/wsck-transport.c b/src/common/wsck-transport.c index 7f4a67b..fe44271 100644 --- a/src/common/wsck-transport.c +++ b/src/common/wsck-transport.c @@ -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 -- 2.7.4