net: lwm2m: Trace clean

Cleaned Trace message print.

Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
This commit is contained in:
Juha Heiskanen 2023-01-25 14:38:42 +02:00 committed by Fabio Baltieri
commit 1f84409b48
2 changed files with 1 additions and 4 deletions

View file

@ -126,9 +126,7 @@ char *lwm2m_sprint_ip_addr(const struct sockaddr *addr)
return net_addr_ntop(AF_INET, &net_sin(addr)->sin_addr, buf, sizeof(buf));
}
LOG_ERR("Unknown IP address family:%d", addr->sa_family);
strcpy(buf, "unk");
return buf;
return "::";
}
static uint8_t to_hex_digit(uint8_t digit)

View file

@ -2292,7 +2292,6 @@ void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, uint8_t *buf, uint16_t buf_
}
}
LOG_DBG("checking for reply from [%s]", lwm2m_sprint_ip_addr(from_addr));
reply = coap_response_received(&response, from_addr, client_ctx->replies,
ARRAY_SIZE(client_ctx->replies));
if (reply) {