33 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) 35 #define max_msg_len 120 39 "%d %s -> CONNECT version %d clean: %d (%d)",
40 "%d %s <- CONNACK rc: %d",
41 "%d %s -> CONNACK rc: %d (%d)",
43 "%d %s -> PINGRESP (%d)",
44 "%d %s <- DISCONNECT",
45 "%d %s <- SUBSCRIBE msgid: %d",
46 "%d %s -> SUBACK msgid: %d (%d)",
47 "%d %s <- UNSUBSCRIBE msgid: %d",
48 "%d %s -> UNSUBACK msgid: %d (%d)",
49 "%d %s -> PUBLISH msgid: %d qos: %d retained: %d rc %d payload len(%d): %.*s",
50 "%d %s <- PUBLISH msgid: %d qos: %d retained: %d payload len(%d): %.*s",
51 "%d %s -> PUBACK msgid: %d (%d)",
52 "%d %s -> PUBREC msgid: %d (%d)",
53 "%d %s <- PUBACK msgid: %d",
54 "%d %s <- PUBREC msgid: %d",
55 "%d %s -> PUBREL msgid: %d (%d)",
56 "%d %s <- PUBREL msgid %d",
57 "%d %s -> PUBCOMP msgid %d (%d)",
58 "%d %s <- PUBCOMP msgid:%d",
59 "%d %s -> PINGREQ (%d)",
61 "%d %s -> SUBSCRIBE msgid: %d (%d)",
62 "%d %s <- SUBACK msgid: %d",
63 "%d %s <- UNSUBACK msgid: %d",
64 "%d %s -> UNSUBSCRIBE msgid: %d (%d)",
66 "%d %s -> PUBLISH qos: 0 retained: %d rc: %d payload len(%d): %.*s",
67 "%d %s -> DISCONNECT (%d)",
68 "Socket error for client identifier %s, socket %d, peer address %s; ending connection",
73 "Failed to remove client from bstate->clients",
74 "Removed client %s from bstate->clients, socket %d",
75 "Packet_Factory: unhandled packet type %d",
76 "Packet %s received from client %s for message identifier %d, but no record of that message identifier found",
77 "Packet %s received from client %s for message identifier %d, but message is wrong QoS, %d",
78 "Packet %s received from client %s for message identifier %d, but message is in wrong state",
79 "%s received from client %s for message id %d - removing publication",
80 "Trying %s again for client %s, socket %d, message identifier %d",
82 "(%lu) %*s(%d)> %s:%d",
83 "(%lu) %*s(%d)< %s:%d",
84 "(%lu) %*s(%d)< %s:%d (%d)",
85 "Storing unsent QoS 0 message",
96 const char *msg = NULL;
static const char * protocol_message_list[]
const char * Messages_get(int index, enum LOG_LEVELS log_level)
static const char * trace_message_list[]