Skip to content

Commit

Permalink
lib: sms: No warning log for unregistration failure
Browse files Browse the repository at this point in the history
Change warning to debug log when unregistration (AT+CNMI=0,0,0,0) fails
as SMS might have been unregistered due to AT+CFUN=0,
or through AT+CNMI=0,0,0,0.

Jira: NRF91-2238

Signed-off-by: Tommi Rantanen <[email protected]>
  • Loading branch information
trantanen authored and nordicjm committed Nov 5, 2024
1 parent ecc960b commit a75cea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sms/sms.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ static void sms_uninit(void)
return;
} else if (ret > 0) {
/* Modem returned an error, assume that there is no registration anymore. */
LOG_WRN("Failed to unregister the SMS client from modem, err: %d", ret);
LOG_DBG("Failed to unregister the SMS client from modem, err: %d. "
"Might be that SMS had already been unregistered.", ret);
}

LOG_DBG("SMS client unregistered");
Expand Down

0 comments on commit a75cea7

Please sign in to comment.