wlan: hdd: fix logging format/argument mismatch
Source code analysis uncovered mismatches between format and argument
in invocations of logging APIs in the hdd code, so fix them.
Change-Id: Iacb0175ade2e255c3b5fcc852ab5d4ff8f901826
CRs-fixed: 570511
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index e5248ad..8c4fba5 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -739,7 +739,7 @@
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
"%s: WLANTL_ClearSTAClient() failed to for staID %d. "
- "Status= %d [0x%08lX]",
+ "Status= %d [0x%08X]",
__func__, staId, vosStatus, vosStatus );
}
return( vosStatus );
@@ -1025,7 +1025,7 @@
if ( !VOS_IS_STATUS_SUCCESS( vosStatus ) )
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_WARN,
- "WLANTL_RegisterSTAClient() failed to register. Status= %d [0x%08lX]",
+ "WLANTL_RegisterSTAClient() failed to register. Status= %d [0x%08X]",
vosStatus, vosStatus );
return vosStatus;
}
@@ -1413,7 +1413,7 @@
else
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_WARN,
- "Cannot register STA with TL. Failed with vosStatus = %d [%08lX]",
+ "Cannot register STA with TL. Failed with vosStatus = %d [%08X]",
vosStatus, vosStatus );
}
#ifdef WLAN_FEATURE_11W
@@ -1953,7 +1953,7 @@
if ( !VOS_IS_STATUS_SUCCESS( vosStatus ) )
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- "Cannot register STA with TL for IBSS. Failed with vosStatus = %d [%08lX]",
+ "Cannot register STA with TL for IBSS. Failed with vosStatus = %d [%08X]",
vosStatus, vosStatus );
}
pHddStaCtx->ibss_sta_generation++;
@@ -2134,8 +2134,8 @@
if ( !VOS_IS_STATUS_SUCCESS( vosStatus ) )
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- "%s: WLANTL_RegisterSTAClient() failed to register. \
- Status= %d [0x%08lX]", __func__, vosStatus, vosStatus );
+ "%s: WLANTL_RegisterSTAClient() failed to register. "
+ "Status= %d [0x%08X]", __func__, vosStatus, vosStatus );
return vosStatus;
}
@@ -2157,7 +2157,7 @@
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_WARN,
"%s: WLANTL_ClearSTAClient() failed to for staID %d. "
- "Status= %d [0x%08lX]",
+ "Status= %d [0x%08X]",
__func__, staId, vosStatus, vosStatus );
}
return( vosStatus );
@@ -2388,7 +2388,7 @@
hdd_context_t *pHddCtx = NULL;
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
- "CSR Callback: status= %d result= %d roamID=%ld",
+ "CSR Callback: status= %d result= %d roamID=%d",
roamStatus, roamResult, roamId );
/*Sanity check*/
@@ -2964,7 +2964,7 @@
if (updatePMKCache)
{
// Calling csrRoamSetPMKIDCache to configure the PMKIDs into the cache
- hddLog(LOG1, FL("%s: Calling csrRoamSetPMKIDCache with cache entry %ld."),
+ hddLog(LOG1, FL("%s: Calling csrRoamSetPMKIDCache with cache entry %d."),
__func__, i );
// Finally set the PMKSA ID Cache in CSR
result = sme_RoamSetPMKIDCache(halHandle,pAdapter->sessionId,