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 <mike@foundries.io>
This commit is contained in:
parent
88642ef2eb
commit
82e889a2e2
1 changed files with 2 additions and 2 deletions
|
@ -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_strdup(pathstr));
|
||||
LOG_ERR("Error setting cred tag %d type %d: Error %d",
|
||||
client_ctx->tls_tag, type, ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue