1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mqtt: protect printing debug only vars

This commit is contained in:
Yichen Gu 2021-10-13 15:52:33 +01:00 committed by Andy Green
parent 7fb6a450e8
commit 61c2e3291f

View file

@ -2362,8 +2362,10 @@ lws_mqtt_client_send_unsubcribe(struct lws *wsi,
wsi->mqtt->sub_size = (uint16_t)rem_len;
#if defined(_DEBUG)
lwsl_debug("%s: Number of topics = %d, Remaining len = %d\n",
__func__, (int)tops, (int)rem_len);
#endif
p += lws_mqtt_vbi_encode(rem_len, p);