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_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 4e1c4d8..2cb0fcc 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -3279,7 +3279,7 @@
{
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
"%s: Received set batch scan failure response from FW",
- __func__, pRsp->nScansToBatch);
+ __func__);
ret = -EINVAL;
goto exit;
}
@@ -3378,7 +3378,7 @@
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
"Invalid total length from user space can't fetch batch"
- " scan response total_len %ld used_len %ld remain len %ld",
+ " scan response total_len %d used_len %d remain len %d",
priv_data.total_len, priv_data.used_len, remain_len);
ret = -EINVAL;
goto exit;
@@ -4995,7 +4995,7 @@
if ( !HAL_STATUS_SUCCESS( halStatus ) )
{
hddLog(VOS_TRACE_LEVEL_FATAL,
- "sme_OpenSession() failed with status code %08d [x%08lx]",
+ "sme_OpenSession() failed with status code %08d [x%08x]",
halStatus, halStatus );
status = VOS_STATUS_E_FAILURE;
goto error_sme_open;
@@ -5017,7 +5017,7 @@
if( eHAL_STATUS_SUCCESS != (halStatus = hdd_register_wext(pWlanDev)))
{
hddLog(VOS_TRACE_LEVEL_FATAL,
- "hdd_register_wext() failed with status code %08d [x%08lx]",
+ "hdd_register_wext() failed with status code %08d [x%08x]",
halStatus, halStatus );
status = VOS_STATUS_E_FAILURE;
goto error_register_wext;
@@ -5041,7 +5041,7 @@
if( VOS_STATUS_SUCCESS != ( status = hdd_init_tx_rx( pAdapter ) ) )
{
hddLog(VOS_TRACE_LEVEL_FATAL,
- "hdd_init_tx_rx() failed with status code %08d [x%08lx]",
+ "hdd_init_tx_rx() failed with status code %08d [x%08x]",
status, status );
goto error_init_txrx;
}
@@ -5051,7 +5051,7 @@
if( VOS_STATUS_SUCCESS != ( status = hdd_wmm_adapter_init( pAdapter ) ) )
{
hddLog(VOS_TRACE_LEVEL_FATAL,
- "hdd_wmm_adapter_init() failed with status code %08d [x%08lx]",
+ "hdd_wmm_adapter_init() failed with status code %08d [x%08x]",
status, status );
goto error_wmm_init;
}