Remove redundant new line in PE logs
Remove \n in log messages as VOS_TRACE introduces the new line at
the end of log message.
Change-Id: I26815abbba3ccbc4281c8981e4a5b68d5cd68234
CRs-Fixed: 441138
diff --git a/CORE/MAC/src/pe/sch/schBeaconGen.c b/CORE/MAC/src/pe/sch/schBeaconGen.c
index 4b0e5d0..a846bc0 100644
--- a/CORE/MAC/src/pe/sch/schBeaconGen.c
+++ b/CORE/MAC/src/pe/sch/schBeaconGen.c
@@ -208,14 +208,14 @@
status = palAllocateMemory(pMac->hHdd, (void **)&pBcn1, sizeof(tDot11fBeacon1));
if(status != eSIR_SUCCESS)
{
- schLog(pMac, LOGE, FL("Failed to allocate memory\n") );
+ schLog(pMac, LOGE, FL("Failed to allocate memory") );
return eSIR_FAILURE;
}
status = palAllocateMemory(pMac->hHdd, (void **)&pBcn2, sizeof(tDot11fBeacon2));
if(status != eSIR_SUCCESS)
{
- schLog(pMac, LOGE, FL("Failed to allocate memory\n") );
+ schLog(pMac, LOGE, FL("Failed to allocate memory") );
palFreeMemory(pMac->hHdd, pBcn1);
return eSIR_FAILURE;
}
@@ -223,13 +223,13 @@
status = palAllocateMemory(pMac->hHdd, (void **)&pWscProbeRes, sizeof(tDot11fIEWscProbeRes));
if(status != eSIR_SUCCESS)
{
- schLog(pMac, LOGE, FL("Failed to allocate memory\n") );
+ schLog(pMac, LOGE, FL("Failed to allocate memory") );
palFreeMemory(pMac->hHdd, pBcn1);
palFreeMemory(pMac->hHdd, pBcn2);
return eSIR_FAILURE;
}
- PELOG1(schLog(pMac, LOG1, FL("Setting fixed beacon fields\n"));)
+ PELOG1(schLog(pMac, LOG1, FL("Setting fixed beacon fields"));)
/*
* First set the fixed fields
@@ -303,7 +303,7 @@
if ( DOT11F_FAILED( nStatus ) )
{
schLog( pMac, LOGE, FL("Failed to packed a tDot11fBeacon1 (0x%0"
- "8x.).\n"), nStatus );
+ "8x.)."), nStatus );
palFreeMemory(pMac->hHdd, pBcn1);
palFreeMemory(pMac->hHdd, pBcn2);
palFreeMemory(pMac->hHdd, pWscProbeRes);
@@ -312,12 +312,12 @@
else if ( DOT11F_WARNED( nStatus ) )
{
schLog( pMac, LOGE, FL("There were warnings while packing a tDo"
- "t11fBeacon1 (0x%08x.).\n"), nStatus );
+ "t11fBeacon1 (0x%08x.)."), nStatus );
}
/*changed to correct beacon corruption */
palZeroMemory( pMac->hHdd, ( tANI_U8*) pBcn2, sizeof( tDot11fBeacon2 ) );
pMac->sch.schObject.gSchBeaconOffsetBegin = offset + ( tANI_U16 )nBytes;
- schLog( pMac, LOG1, FL("Initialized beacon begin, offset %d\n"), offset );
+ schLog( pMac, LOG1, FL("Initialized beacon begin, offset %d"), offset );
/*
* Initialize the 'new' fields at the end of the beacon
@@ -348,7 +348,7 @@
#ifdef WLAN_FEATURE_11AC
if(psessionEntry->vhtCapability)
{
- limLog( pMac, LOGW, FL("Populate VHT IEs in Beacon\n"));
+ limLog( pMac, LOGW, FL("Populate VHT IEs in Beacon"));
PopulateDot11fVHTCaps( pMac, &pBcn2->VHTCaps );
PopulateDot11fVHTOperation( pMac, &pBcn2->VHTOperation);
// we do not support multi users yet
@@ -384,7 +384,7 @@
else
{
if (wlan_cfgGetInt(pMac, (tANI_U16) WNI_CFG_WPS_ENABLE, &tmp) != eSIR_SUCCESS)
- limLog(pMac, LOGP,"Failed to cfg get id %d\n", WNI_CFG_WPS_ENABLE );
+ limLog(pMac, LOGP,"Failed to cfg get id %d", WNI_CFG_WPS_ENABLE );
wpsApEnable = tmp & WNI_CFG_WPS_ENABLE_AP;
@@ -443,7 +443,7 @@
if ( DOT11F_FAILED( nStatus ) )
{
schLog( pMac, LOGE, FL("Failed to packed a tDot11fBeacon2 (0x%0"
- "8x.).\n"), nStatus );
+ "8x.)."), nStatus );
palFreeMemory(pMac->hHdd, pBcn1);
palFreeMemory(pMac->hHdd, pBcn2);
palFreeMemory(pMac->hHdd, pWscProbeRes);
@@ -452,7 +452,7 @@
else if ( DOT11F_WARNED( nStatus ) )
{
schLog( pMac, LOGE, FL("There were warnings while packing a tDo"
- "t11fBeacon2 (0x%08x.).\n"), nStatus );
+ "t11fBeacon2 (0x%08x.)."), nStatus );
}
pExtraIe = pMac->sch.schObject.gSchBeaconFrameEnd + nBytes;
@@ -482,7 +482,7 @@
pMac->sch.schObject.p2pIeOffset = 0;
}
- schLog( pMac, LOG1, FL("Initialized beacon end, offset %d\n"),
+ schLog( pMac, LOG1, FL("Initialized beacon end, offset %d"),
pMac->sch.schObject.gSchBeaconOffsetEnd );
pMac->sch.schObject.fBeaconChanged = 1;
@@ -741,7 +741,7 @@
pBeacon->beaconLength = (tANI_U32) size - sizeof( tANI_U32 );
// write size bytes from gSchBeaconFrameBegin
- PELOG2(schLog(pMac, LOG2, FL("Beacon size - %d bytes\n"), size);)
+ PELOG2(schLog(pMac, LOG2, FL("Beacon size - %d bytes"), size);)
PELOG2(sirDumpBuf(pMac, SIR_SCH_MODULE_ID, LOG2, pMac->sch.schObject.gSchBeaconFrameBegin, size);)
if (! pMac->sch.schObject.fBeaconChanged)
@@ -759,7 +759,7 @@
size = (size + 3) & (~3);
if( eSIR_SUCCESS != schSendBeaconReq( pMac, pMac->sch.schObject.gSchBeaconFrameBegin, size , psessionEntry))
- PELOGE(schLog(pMac, LOGE, FL("schSendBeaconReq() returned an error (zsize %d)\n"), size);)
+ PELOGE(schLog(pMac, LOGE, FL("schSendBeaconReq() returned an error (zsize %d)"), size);)
else
{
pMac->sch.gSchBeaconsWritten++;
@@ -793,7 +793,7 @@
if((psessionEntry = peFindSessionByBssid(pMac,pMsg->bssId, &sessionId))== NULL)
{
- PELOGE(schLog(pMac, LOGE, FL("session lookup fails\n"));)
+ PELOGE(schLog(pMac, LOGE, FL("session lookup fails"));)
goto end;
}
@@ -802,7 +802,7 @@
// If SME is not in normal mode, no need to generate beacon
if (psessionEntry->limSmeState != eLIM_SME_NORMAL_STATE)
{
- PELOGE(schLog(pMac, LOG1, FL("PreBeaconInd received in invalid state: %d\n"), psessionEntry->limSmeState);)
+ PELOGE(schLog(pMac, LOG1, FL("PreBeaconInd received in invalid state: %d"), psessionEntry->limSmeState);)
goto end;
}
@@ -815,7 +815,7 @@
if(psessionEntry->statypeForBss == STA_ENTRY_SELF)
writeBeaconToMemory(pMac, (tANI_U16) beaconSize, (tANI_U16)beaconSize, psessionEntry);
else
- PELOGE(schLog(pMac, LOGE, FL("can not send beacon for PEER session entry\n"));)
+ PELOGE(schLog(pMac, LOGE, FL("can not send beacon for PEER session entry"));)
break;
case eLIM_AP_ROLE:{
@@ -827,7 +827,7 @@
writeBeaconToMemory(pMac, (tANI_U16) beaconSize, (tANI_U16)beaconSize, psessionEntry);
}
else
- PELOGE(schLog(pMac, LOGE, FL("can not send beacon for PEER session entry\n"));)
+ PELOGE(schLog(pMac, LOGE, FL("can not send beacon for PEER session entry"));)
}
break;