From 3d230c4a176ae424fe303146a37e30d36420b296 Mon Sep 17 00:00:00 2001 From: Lukasz Bardeli Date: Mon, 20 Jul 2015 12:04:03 +0200 Subject: [PATCH] [Systeminfo] fix for prevent issue [Verification] Code compiles without error. Passrate 100% [Feature] CID: 453400 Change-Id: I2c0d3e942c6330b3476bd4f1008437d563385923 Signed-off-by: Lukasz Bardeli --- src/systeminfo/systeminfo-utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/systeminfo/systeminfo-utils.cpp b/src/systeminfo/systeminfo-utils.cpp index f7de75a2..1cacaa14 100644 --- a/src/systeminfo/systeminfo-utils.cpp +++ b/src/systeminfo/systeminfo-utils.cpp @@ -2398,7 +2398,7 @@ static PlatformResult FetchBasicSimProperties(TapiHandle *tapi_handle, int tapi_res = TAPI_API_SUCCESS; tapi_res = tel_get_property_int(tapi_handle, TAPI_PROP_NETWORK_PLMN, &result_value); if (TAPI_API_SUCCESS != tapi_res) { - std::string error_msg = "Cannot get mcc value, error: " + tapi_res; + std::string error_msg = "Cannot get mcc value, error: " + std::to_string(tapi_res); LoggerE("%s", error_msg.c_str()); return PlatformResult(ErrorCode::UNKNOWN_ERR, error_msg); } @@ -2407,7 +2407,7 @@ static PlatformResult FetchBasicSimProperties(TapiHandle *tapi_handle, tapi_res = tel_get_property_int(tapi_handle, TAPI_PROP_NETWORK_CELLID, &result_value); if (TAPI_API_SUCCESS != tapi_res) { - std::string error_msg = "Cannot get cell_id value, error: " + tapi_res; + std::string error_msg = "Cannot get cell_id value, error: " + std::to_string(tapi_res); LoggerE("%s", error_msg.c_str()); return PlatformResult(ErrorCode::UNKNOWN_ERR, error_msg); } @@ -2415,7 +2415,7 @@ static PlatformResult FetchBasicSimProperties(TapiHandle *tapi_handle, tapi_res = tel_get_property_int(tapi_handle, TAPI_PROP_NETWORK_LAC, &result_value); if (TAPI_API_SUCCESS != tapi_res) { - std::string error_msg = "Cannot get lac value, error: " + tapi_res; + std::string error_msg = "Cannot get lac value, error: " + std::to_string(tapi_res); LoggerE("%s", error_msg.c_str()); return PlatformResult(ErrorCode::UNKNOWN_ERR, error_msg); } @@ -2423,7 +2423,7 @@ static PlatformResult FetchBasicSimProperties(TapiHandle *tapi_handle, tapi_res = tel_get_property_int(tapi_handle, TAPI_PROP_NETWORK_ROAMING_STATUS, &result_value); if (TAPI_API_SUCCESS != tapi_res) { - std::string error_msg = "Cannot get is_roaming value, error: " + tapi_res; + std::string error_msg = "Cannot get is_roaming value, error: " + std::to_string(tapi_res); LoggerE("%s", error_msg.c_str()); return PlatformResult(ErrorCode::UNKNOWN_ERR, error_msg); } -- 2.34.1