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));
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)
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);
}
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