@@ -231,8 +231,8 @@ static CellularATError_t getDataFromResp( const CellularATCommandResponse_t * pA
231231 /* Check if the received data size is greater than the output buffer size. */
232232 if ( * pDataRecv -> pDataLen > outBufSize )
233233 {
234- LogError ( "Data is turncated, received data length %d, out buffer size %d" ,
235- * pDataRecv -> pDataLen , outBufSize );
234+ LogError ( ( "Data is turncated, received data length %d, out buffer size %d" ,
235+ * pDataRecv -> pDataLen , outBufSize ) );
236236 dataLenToCopy = outBufSize ;
237237 * pDataRecv -> pDataLen = outBufSize ;
238238 }
@@ -253,8 +253,8 @@ static CellularATError_t getDataFromResp( const CellularATCommandResponse_t * pA
253253 }
254254 else
255255 {
256- LogError ( "Receive Data: paramerter error, data pointer %p, data to copy %d" ,
257- pInputLine , dataLenToCopy );
256+ LogError ( ( "Receive Data: paramerter error, data pointer %p, data to copy %d" ,
257+ pInputLine , dataLenToCopy ) );
258258 atCoreStatus = CELLULAR_AT_BAD_PARAMETER ;
259259 }
260260 }
@@ -372,8 +372,8 @@ static CellularError_t buildSocketConfig( CellularSocketHandle_t socketHandle,
372372 }
373373 else if ( socketHandle -> socketProtocol != CELLULAR_SOCKET_PROTOCOL_TCP )
374374 {
375- LogError ( "buildSocketConfig: socket protocol unsupported %d" ,
376- socketHandle -> socketProtocol );
375+ LogError ( ( "buildSocketConfig: socket protocol unsupported %d" ,
376+ socketHandle -> socketProtocol ) );
377377 cellularStatus = CELLULAR_UNSUPPORTED ;
378378 }
379379 else
@@ -415,14 +415,14 @@ static CellularError_t storeAccessModeAndAddress( CellularContext_t * pContext,
415415 }
416416 else if ( socketHandle -> socketState != SOCKETSTATE_ALLOCATED )
417417 {
418- LogError ( "storeAccessModeAndAddress, bad socket state %d" ,
419- socketHandle -> socketState );
418+ LogError ( ( "storeAccessModeAndAddress, bad socket state %d" ,
419+ socketHandle -> socketState ) );
420420 cellularStatus = CELLULAR_INTERNAL_FAILURE ;
421421 }
422422 else if ( dataAccessMode != CELLULAR_ACCESSMODE_BUFFER )
423423 {
424- LogError ( "storeAccessModeAndAddress, Access mode not supported %d" ,
425- dataAccessMode );
424+ LogError ( ( "storeAccessModeAndAddress, Access mode not supported %d" ,
425+ dataAccessMode ) );
426426 cellularStatus = CELLULAR_UNSUPPORTED ;
427427 }
428428 else
@@ -982,8 +982,8 @@ CellularError_t Cellular_GetSimCardStatus( CellularHandle_t cellularHandle,
982982 pSimCardStatus -> simCardState = CELLULAR_SIM_CARD_UNKNOWN ;
983983 }
984984
985- LogInfo ( "Cellular_GetSimCardStatus, Sim Insert State[%d], Lock State[%d]" ,
986- pSimCardStatus -> simCardState , pSimCardStatus -> simCardLockState );
985+ LogInfo ( ( "Cellular_GetSimCardStatus, Sim Insert State[%d], Lock State[%d]" ,
986+ pSimCardStatus -> simCardState , pSimCardStatus -> simCardLockState ) );
987987 }
988988 }
989989
@@ -1044,8 +1044,8 @@ CellularError_t Cellular_DeactivatePdn( CellularHandle_t cellularHandle,
10441044 /* Print only those contexts that are present in +CGACT response */
10451045 if ( pdpContextsActInfo .contextsPresent [ i ] )
10461046 {
1047- LogDebug ( "Context [%d], Act State [%d], Operator <Act> [%d]\r\n" , i + 1 ,
1048- pdpContextsActInfo .contextActState [ i ], serviceStatus .rat );
1047+ LogDebug ( ( "Context [%d], Act State [%d], Operator <Act> [%d]\r\n" , i + 1 ,
1048+ pdpContextsActInfo .contextActState [ i ], serviceStatus .rat ) );
10491049 }
10501050 }
10511051
@@ -1409,8 +1409,8 @@ CellularError_t Cellular_ActivatePdn( CellularHandle_t cellularHandle,
14091409 /* Print only those contexts that are present in +CGACT response */
14101410 if ( pdpContextsActInfo .contextsPresent [ i ] )
14111411 {
1412- LogDebug ( "Cellular_ActivatePdn: Context [%d], Act State [%d]\r\n" , i + 1 ,
1413- pdpContextsActInfo .contextActState [ i ] );
1412+ LogDebug ( ( "Cellular_ActivatePdn: Context [%d], Act State [%d]\r\n" , i + 1 ,
1413+ pdpContextsActInfo .contextActState [ i ] ) );
14141414 }
14151415 }
14161416 }
@@ -2543,8 +2543,8 @@ CellularError_t Cellular_SetPdnConfig( CellularHandle_t cellularHandle,
25432543 break ;
25442544
25452545 default :
2546- LogDebug ( "Cellular_SetPdnConfig: Invalid pdn context type %d" ,
2547- CELLULAR_PDN_CONTEXT_IPV4V6 );
2546+ LogDebug ( ( "Cellular_SetPdnConfig: Invalid pdn context type %d" ,
2547+ CELLULAR_PDN_CONTEXT_IPV4V6 ) );
25482548 cellularStatus = CELLULAR_BAD_PARAMETER ;
25492549 break ;
25502550 }
@@ -2588,8 +2588,8 @@ CellularError_t Cellular_SetPdnConfig( CellularHandle_t cellularHandle,
25882588 /* Print only those contexts that are present in +CGDCONT response */
25892589 if ( pdpContextsInfo .contextsPresent [ i ] )
25902590 {
2591- LogDebug ( "Context [%d], IP Type [%s], APN Name [%s], IP Address [%s]\r\n" , i + 1 ,
2592- pdpContextsInfo .ipType [ i ], pdpContextsInfo .apnName , pdpContextsInfo .ipAddress );
2591+ LogDebug ( ( "Context [%d], IP Type [%s], APN Name [%s], IP Address [%s]\r\n" , i + 1 ,
2592+ pdpContextsInfo .ipType [ i ], pdpContextsInfo .apnName , pdpContextsInfo .ipAddress ) );
25932593 }
25942594 }
25952595 }
0 commit comments