wlan: Replace __FUNCTION__ argument with __func__ in the wlan driver
The fix is to not use the gcc specific __FUNCTION__ to capture function
name; but use __func__ which is a C-99 standard identifier
Change-Id: Ie36f1bb87a3a4a51ec177ab5b6a253e279401e88
CR-Fixed: NA
diff --git a/CORE/SME/src/btc/btcApi.c b/CORE/SME/src/btc/btcApi.c
index d92e03c..9c86a09 100644
--- a/CORE/SME/src/btc/btcApi.c
+++ b/CORE/SME/src/btc/btcApi.c
@@ -129,7 +129,7 @@
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_FATAL,
"%s: %d: cannot deregister with pmcDeregisterDeviceStateUpdateInd()",
- __FUNCTION__, __LINE__);
+ __func__, __LINE__);
}
return VOS_STATUS_SUCCESS;
@@ -180,7 +180,7 @@
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
"Invalid link type %d for Sync Connection. BT event will be dropped ",
- __FUNCTION__, pBtEvent->uEventParam.btSyncConnection.linkType);
+ __func__, pBtEvent->uEventParam.btSyncConnection.linkType);
return VOS_STATUS_E_FAILURE;
}
break;
@@ -191,7 +191,7 @@
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
"Invalid connection handle %d or link type %d for Sync Connection. BT event will be dropped ",
- __FUNCTION__,
+ __func__,
pBtEvent->uEventParam.btSyncConnection.connectionHandle,
pBtEvent->uEventParam.btSyncConnection.linkType);
return VOS_STATUS_E_FAILURE;
@@ -202,7 +202,7 @@
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
"Invalid mode %d for ACL Connection. BT event will be dropped ",
- __FUNCTION__,
+ __func__,
pBtEvent->uEventParam.btAclModeChange.mode);
return VOS_STATUS_E_FAILURE;
}
@@ -217,7 +217,7 @@
if (NULL == ptrSmeBtEvent)
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
- "Not able to allocate memory for BT event", __FUNCTION__);
+ "Not able to allocate memory for BT event", __func__);
return VOS_STATUS_E_FAILURE;
}
btcLogEvent(pMac, pBtEvent);
@@ -231,7 +231,7 @@
if(VOS_STATUS_SUCCESS != vos_mq_post_message(VOS_MODULE_ID_WDA, &msg))
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
- "Not able to post WDA_SIGNAL_BT_EVENT message to WDA", __FUNCTION__);
+ "Not able to post WDA_SIGNAL_BT_EVENT message to WDA", __func__);
vos_mem_free( ptrSmeBtEvent );
return VOS_STATUS_E_FAILURE;
}
@@ -266,21 +266,21 @@
if( NULL == pBtEvent )
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
- "Null pointer for SME BT Event", __FUNCTION__);
+ "Null pointer for SME BT Event", __func__);
return VOS_STATUS_E_FAILURE;
}
if(( BTC_WLAN_ONLY == pMac->btc.btcConfig.btcExecutionMode ) ||
( BTC_PTA_ONLY == pMac->btc.btcConfig.btcExecutionMode ))
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
- "BTC execution mode not set to BTC_SMART_COEXISTENCE. BT event will be dropped", __FUNCTION__);
+ "BTC execution mode not set to BTC_SMART_COEXISTENCE. BT event will be dropped", __func__);
return VOS_STATUS_E_FAILURE;
}
if( pBtEvent->btEventType < 0 || pBtEvent->btEventType >= BT_EVENT_TYPE_MAX )
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
"Invalid BT event %d being passed. BT event will be dropped",
- __FUNCTION__, pBtEvent->btEventType);
+ __func__, pBtEvent->btEventType);
return VOS_STATUS_E_FAILURE;
}
//Check PMC state to make sure whether we need to defer
@@ -1622,7 +1622,7 @@
static void btcLogEvent (tHalHandle hHal, tpSmeBtEvent pBtEvent)
{
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, "%s: "
- "Bluetooth Event %d received", __FUNCTION__, pBtEvent->btEventType);
+ "Bluetooth Event %d received", __func__, pBtEvent->btEventType);
switch(pBtEvent->btEventType)
{
case BT_EVENT_CREATE_SYNC_CONNECTION:
@@ -1865,14 +1865,14 @@
if (NULL == pMsg)
{
- smsLog(pMac, LOGE, "in %s msg ptr is NULL\n", __FUNCTION__);
+ smsLog(pMac, LOGE, "in %s msg ptr is NULL\n", __func__);
status = eHAL_STATUS_FAILURE;
}
else
{
// DEBUG
smsLog(pMac, LOG1, "Coex indication in %s(), type %d",
- __FUNCTION__, pSmeCoexInd->coexIndType);
+ __func__, pSmeCoexInd->coexIndType);
// suspend heartbeat monitoring
if (pSmeCoexInd->coexIndType == SIR_COEX_IND_TYPE_DISABLE_HB_MONITOR)
@@ -1895,7 +1895,7 @@
// unknown indication type
else
{
- smsLog(pMac, LOGE, "unknown Coex indication type in %s()", __FUNCTION__);
+ smsLog(pMac, LOGE, "unknown Coex indication type in %s()", __func__);
}
}