Skip to content

Commit e86b774

Browse files
author
Kimmo Vaisanen
committed
Fix PLMN trace for IAR
IAR 8.32 does not support printing null pointer as printf string parameter.
1 parent dfaa031 commit e86b774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ int main()
209209
print_function("\n\nmbed-os-example-cellular\n");
210210
print_function("\n\nBuilt: %s, %s\n", __DATE__, __TIME__);
211211
#ifdef MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN
212-
print_function("\n\n[MAIN], plmn: %s\n", MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN);
212+
print_function("\n\n[MAIN], plmn: %s\n", (MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN ? MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN : "NULL"));
213213
#endif
214214

215215
print_function("Establishing connection\n");

0 commit comments

Comments
 (0)