zephyr/subsys/net/lib/mqtt
Pete Skeggs e0de4ff227 net: mqtt: log struct mqtt_utf8 with hexdump
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>
2021-03-05 12:49:22 +02:00
..
CMakeLists.txt
Kconfig
mqtt.c net: mqtt: Return -1 if keepalive messages are disabled. 2020-12-08 14:08:36 -05:00
mqtt_decoder.c
mqtt_encoder.c net: mqtt: log struct mqtt_utf8 with hexdump 2021-03-05 12:49:22 +02:00
mqtt_internal.h
mqtt_os.h net: mqtt: log struct mqtt_utf8 with hexdump 2021-03-05 12:49:22 +02:00
mqtt_rx.c
mqtt_transport.c
mqtt_transport.h
mqtt_transport_socket_tcp.c
mqtt_transport_socket_tls.c
mqtt_transport_websocket.c