Skip to content
Browse files

net: lwm2m: fix error message in load_tls_credential()

Copy/paste issue was showing the wrong error message when a TLS
credential failed to be added.

Signed-off-by: Michael Scott <>
  • Loading branch information...
mike-scott authored and jukkar committed Jul 8, 2019
1 parent 88642ef commit 82e889a2e2227e460165a9c084519eaf53896ddb
Showing with 2 additions and 2 deletions.
  1. +2 −2 subsys/net/lib/lwm2m/lwm2m_engine.c
@@ -3979,8 +3979,8 @@ static int load_tls_credential(struct lwm2m_ctx *client_ctx, u16_t res_id,

ret = tls_credential_add(client_ctx->tls_tag, type, cred, cred_len);
if (ret < 0) {
LOG_ERR("Unable to get resource data for '%s'",
LOG_ERR("Error setting cred tag %d type %d: Error %d",
client_ctx->tls_tag, type, ret);

return ret;

0 comments on commit 82e889a

Please sign in to comment.
You can’t perform that action at this time.