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/MAC/src/pe/lim/limProcessMlmReqMessages.c b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c
index bb5ab99..1279f8c 100644
--- a/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c
@@ -267,13 +267,13 @@
{
if( NULL == callback )
{
- limLog( pMac, LOGE, "%s:%d: Invalid parameters\n", __FUNCTION__, __LINE__ );
+ limLog( pMac, LOGE, "%s:%d: Invalid parameters\n", __func__, __LINE__ );
return;
}
if( pMac->lim.gpLimSuspendCallback )
{
- limLog( pMac, LOGE, "%s:%d: gLimSuspendLink callback is not NULL...something is wrong\n", __FUNCTION__, __LINE__ );
+ limLog( pMac, LOGE, "%s:%d: gLimSuspendLink callback is not NULL...something is wrong\n", __func__, __LINE__ );
callback( pMac, eHAL_STATUS_FAILURE, data );
return;
}
@@ -308,13 +308,13 @@
{
if( NULL == callback )
{
- limLog( pMac, LOGE, "%s:%d: Invalid parameters\n", __FUNCTION__, __LINE__ );
+ limLog( pMac, LOGE, "%s:%d: Invalid parameters\n", __func__, __LINE__ );
return;
}
if( pMac->lim.gpLimResumeCallback )
{
- limLog( pMac, LOGE, "%s:%d: gLimResumeLink callback is not NULL...something is wrong\n", __FUNCTION__, __LINE__ );
+ limLog( pMac, LOGE, "%s:%d: gLimResumeLink callback is not NULL...something is wrong\n", __func__, __LINE__ );
callback( pMac, eHAL_STATUS_FAILURE, data );
return;
}