Add NET_HEXDUMP_DBG/ERR/WARN/INFO macros, then use them for new MQTT_HEXDUMP_TRC/ERR/WARN/INFO macros. Log struct mqtt_utf8 using MQTT_HEXDUMP_TRC. One cannot safely log mqtt_utf8 strings due to no guarantee of a NULL terminator being present. Also, logging without log_strdup() as if it were a NULL terminated string asserts when CONFIG_LOG_IMMEDIATE=n. This solves both issues. Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| mqtt_decoder.c | ||
| mqtt_encoder.c | ||
| mqtt_internal.h | ||
| mqtt_os.h | ||
| mqtt_rx.c | ||
| mqtt_transport_socket_tcp.c | ||
| mqtt_transport_socket_tls.c | ||
| mqtt_transport_websocket.c | ||
| mqtt_transport.c | ||
| mqtt_transport.h | ||
| mqtt.c | ||