Skip to content

Commit b26314a

Browse files
author
Kimmo Vaisanen
committed
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.
1 parent 3e6f5eb commit b26314a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/device/CellularStateMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bool CellularStateMachine::open_sim()
167167

168168
if (sim_ready) {
169169
_cb_data.error = _network.set_registration(_plmn);
170-
tr_debug("STM: set_registration: %d, plmn: %s", _cb_data.error, _plmn);
170+
tr_debug("STM: set_registration: %d, plmn: %s", _cb_data.error, _plmn ? _plmn : "NULL");
171171
if (_cb_data.error) {
172172
return false;
173173
}

0 commit comments

Comments
 (0)