From 06caa0ff143b7f3c9da78083723c9413aee9bd7e Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Wed, 20 Mar 2019 14:39:07 +0200 Subject: [PATCH] Cellular: Fix plmn trace for IAR IAR compiler does not seem to like printing null strings. --- features/cellular/framework/AT/AT_CellularContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cellular/framework/AT/AT_CellularContext.cpp b/features/cellular/framework/AT/AT_CellularContext.cpp index 853a9e9052..a2d758dbb1 100644 --- a/features/cellular/framework/AT/AT_CellularContext.cpp +++ b/features/cellular/framework/AT/AT_CellularContext.cpp @@ -259,7 +259,7 @@ nsapi_error_t AT_CellularContext::set_blocking(bool blocking) void AT_CellularContext::set_plmn(const char *plmn) { - tr_info("CellularContext plmn %s", plmn); + tr_info("CellularContext plmn %s", (plmn ? plmn : "NULL")); _device->set_plmn(plmn); }