Cellular: Fix PLMN debug trace for IAR

IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
pull/11023/head
Kimmo Vaisanen 2019-06-13 15:35:37 +03:00 committed by Evelyne Donnaes
parent 050af7c49c
commit 8a86811f1a
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ bool CellularStateMachine::open_sim()
if (sim_ready) { if (sim_ready) {
_cb_data.error = _network.set_registration(_plmn); _cb_data.error = _network.set_registration(_plmn);
tr_debug("STM: set_registration: %d, plmn: %s", _cb_data.error, _plmn); tr_debug("STM: set_registration: %d, plmn: %s", _cb_data.error, _plmn ? _plmn : "NULL");
if (_cb_data.error) { if (_cb_data.error) {
return false; return false;
} }