mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
050af7c49c
commit
8a86811f1a
|
@ -167,7 +167,7 @@ bool CellularStateMachine::open_sim()
|
|||
|
||||
if (sim_ready) {
|
||||
_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) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue