Remove the redundant new line in PE logs
Remove the \n in log messages as the VOS_TRACE introduces the new
line at the end of the log message.
Change-Id: I86469483c752c57a49872dc4c4643bc67634489d
CRs-Fixed: 441138
Conflicts:
CORE/MAC/src/pe/lim/limAIDmgmt.c
CORE/MAC/src/pe/lim/limAdmitControl.c
diff --git a/CORE/MAC/src/pe/lim/limP2P.c b/CORE/MAC/src/pe/lim/limP2P.c
index 4689abe..d654c38 100644
--- a/CORE/MAC/src/pe/lim/limP2P.c
+++ b/CORE/MAC/src/pe/lim/limP2P.c
@@ -168,14 +168,14 @@
!= TX_SUCCESS)
{
limLog(pMac, LOGP,
- FL("Unable to change remain on channel Timer val\n"));
+ FL("Unable to change remain on channel Timer val"));
goto error;
}
else if(TX_SUCCESS != tx_timer_activate(
&pMac->lim.limTimers.gLimRemainOnChannelTimer))
{
limLog(pMac, LOGP,
- FL("Unable to activate remain on channel Timer\n"));
+ FL("Unable to activate remain on channel Timer"));
limDeactivateAndChangeTimer(pMac, eLIM_REMAIN_CHN_TIMER);
goto error;
}
@@ -232,7 +232,7 @@
if((psessionEntry = peCreateSession(pMac,
pMac->lim.gpLimRemainOnChanReq->selfMacAddr, &sessionId, 1)) == NULL)
{
- limLog(pMac, LOGE, FL("Session Can not be created \n"));
+ limLog(pMac, LOGE, FL("Session Can not be created "));
/* send remain on chn failure */
return nSirStatus;
}
@@ -300,7 +300,7 @@
/* Try to Create a new session */
if(eSIR_SUCCESS != limCreateSessionForRemainOnChn(pMac, &psessionEntry))
{
- limLog(pMac, LOGE, FL("Session Can not be created \n"));
+ limLog(pMac, LOGE, FL("Session Can not be created "));
/* send remain on chn failure */
goto error;
}
@@ -339,7 +339,7 @@
if (status != eHAL_STATUS_SUCCESS)
{
- limLog( pMac, LOGE, "%s: Change channel not successful\n");
+ limLog( pMac, LOGE, "%s: Change channel not successful");
goto error1;
}
@@ -360,7 +360,7 @@
* Could not change Remain on channel Timer. Log error.
*/
limLog(pMac, LOGP,
- FL("Unable to change remain on channel Timer val\n"));
+ FL("Unable to change remain on channel Timer val"));
goto error;
}
@@ -368,7 +368,7 @@
tx_timer_activate(&pMac->lim.limTimers.gLimRemainOnChannelTimer))
{
limLog( pMac, LOGE,
- "%s: remain on channel Timer Start Failed\n", __func__);
+ "%s: remain on channel Timer Start Failed", __func__);
goto error;
}
@@ -455,7 +455,7 @@
pMac->lim.limTimers.gLimRemainOnChannelTimer.sessionId))== NULL)
{
limLog(pMac, LOGE,
- FL("Session Does not exist for given sessionID\n"));
+ FL("Session Does not exist for given sessionID"));
goto error;
}
@@ -481,7 +481,7 @@
if (status != eHAL_STATUS_SUCCESS)
{
- PELOGE(limLog( pMac, LOGE, "Remain on Channel Failed\n");)
+ PELOGE(limLog( pMac, LOGE, "Remain on Channel Failed");)
goto error;
}
//Set the resume channel to Any valid channel (invalid).
@@ -509,7 +509,7 @@
if ( NULL == MsgRemainonChannel )
{
PELOGE(limLog( pMac, LOGP,
- "%s: No Pointer for Remain on Channel Req\n", __func__);)
+ "%s: No Pointer for Remain on Channel Req", __func__);)
return;
}
@@ -583,7 +583,7 @@
palAllocateMemory( pMac->hHdd, (void **)&pSirSmeMgmtFrame, length ))
{
limLog(pMac, LOGP,
- FL("palAllocateMemory failed for eWNI_SME_LISTEN_RSP\n"));
+ FL("palAllocateMemory failed for eWNI_SME_LISTEN_RSP"));
return;
}
palZeroMemory(pMac->hHdd, (void*)pSirSmeMgmtFrame, length);
@@ -898,7 +898,7 @@
nBytes += noaLen;
limLog( pMac, LOGE,
FL("noaLen=%d origLen=%d pP2PIe=0x%x"
- " nBytes=%d nBytesToCopy=%d \n"),
+ " nBytes=%d nBytesToCopy=%d "),
noaLen,origLen,pP2PIe,nBytes,
((pP2PIe + origLen + 2) - (v_U8_t *)pMbMsg->data));
}
@@ -928,20 +928,20 @@
val = SYS_MS_TO_TICKS(pMbMsg->wait);
limLog(pMac, LOG1,
- FL("Tx: Extending the gLimRemainOnChannelTimer\n"));
+ FL("Tx: Extending the gLimRemainOnChannelTimer"));
if (tx_timer_change(
&pMac->lim.limTimers.gLimRemainOnChannelTimer, val, 0)
!= TX_SUCCESS)
{
limLog(pMac, LOGP,
- FL("Unable to change remain on channel Timer val\n"));
+ FL("Unable to change remain on channel Timer val"));
return;
}
else if(TX_SUCCESS != tx_timer_activate(
&pMac->lim.limTimers.gLimRemainOnChannelTimer))
{
limLog(pMac, LOGP,
- FL("Unable to activate remain on channel Timer\n"));
+ FL("Unable to activate remain on channel Timer"));
limDeactivateAndChangeTimer(pMac, eLIM_REMAIN_CHN_TIMER);
return;
}
@@ -964,7 +964,7 @@
if ( ! HAL_STATUS_SUCCESS ( halstatus ) )
{
limLog( pMac, LOGE, FL("Failed to allocate %d bytes for a Probe"
- " Request.\n"), nBytes );
+ " Request."), nBytes );
return;
}
@@ -1018,7 +1018,7 @@
if ( ! HAL_STATUS_SUCCESS ( halstatus ) )
{
- limLog( pMac, LOGE, FL("could not send action frame!\n" ));
+ limLog( pMac, LOGE, FL("could not send action frame!" ));
limSendSmeRsp(pMac, eWNI_SME_ACTION_FRAME_SEND_CNF, halstatus,
pMbMsg->sessionId, 0);
pMac->lim.mgmtFrameSessionId = 0xff;
@@ -1026,7 +1026,7 @@
else
{
pMac->lim.mgmtFrameSessionId = pMbMsg->sessionId;
- limLog( pMac, LOG2, FL("lim.actionFrameSessionId = %lu\n" ),
+ limLog( pMac, LOG2, FL("lim.actionFrameSessionId = %lu" ),
pMac->lim.mgmtFrameSessionId);
}
@@ -1061,7 +1061,7 @@
pMac->hHdd, (void **) &pMsgNoA, sizeof( tP2pPsConfig )))
{
limLog( pMac, LOGE,
- FL( "Unable to allocate memory during NoA Update\n" ));
+ FL( "Unable to allocate memory during NoA Update" ));
return eSIR_MEM_ALLOC_FAILED;
}
@@ -1081,7 +1081,7 @@
if(eSIR_SUCCESS != wdaPostCtrlMsg(pMac, &msg))
{
- limLog(pMac, LOGE, FL("halPostMsgApi failed\n"));
+ limLog(pMac, LOGE, FL("halPostMsgApi failed"));
return eSIR_FAILURE;
}