Skip to content

Commit

Permalink
[MXCHIP] fix previous code
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchipwanges committed Mar 21, 2024
1 parent 7072cc0 commit 713a12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sp/protocol/mqtt/nmq_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,9 @@ nano_pipe_start(void *arg)
// TODO use p_id
clientid = (char *) conn_param_get_clientid(p->conn_param);
clientid_key = DJBHashn(clientid, strlen(clientid));
log_debug("client_id(%s, hash %d), username(%d), passwd(%s), clean_start(%d), keepalive(%d) connected! addr [%s port [%d]\n",
clientid, clientid_key, p->conn_param->username, p->conn_param->password, p->conn_param->clean_start, p->conn_param->keepalive_mqtt,
log_debug("client_id(%s, hash %d), username(%s), passwd(%s), clean_start(%d), keepalive(%d) connected! addr [%s port [%d]\n",
clientid, clientid_key, p->conn_param->username.body, p->conn_param->password.body,
p->conn_param->clean_start, p->conn_param->keepalive_mqtt,
p->conn_param->ip_addr_v4, addr.s_in.sa_port);
if (!clientid) {
log_warn("NULL clientid found when try to restore session.");
Expand Down

0 comments on commit 713a12c

Please sign in to comment.