diff options
| author | Jeff Johnson <jjohnson@qca.qualcomm.com> | 2014-01-07 19:06:24 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2014-01-23 21:56:10 -0800 |
| commit | 3437876949b0db97af3e69a42b892c9716fa683d (patch) | |
| tree | 422018c77424c299c60add6df0761d0e1e234d32 | |
| parent | 79ca0446925a5d43d9c686a77ae6e2632dc3bd51 (diff) | |
qcacld: hdd: fix logging format/argument mismatches
Source code analysis uncovered mismatches between format and argument
in invocations of logging APIs in the hdd code, so fix them.
Change-Id: I97b98163136e55ef6f56c0ea5ea6d7ec12ba1821
CRs-fixed: 570511
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg.c | 4 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_early_suspend.c | 4 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c index a036d049c77b..7c2922b45d67 100644 --- a/CORE/HDD/src/wlan_hdd_cfg.c +++ b/CORE/HDD/src/wlan_hdd_cfg.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -4464,7 +4464,7 @@ v_BOOL_t hdd_update_config_dat( hdd_context_t *pHddCtx ) temp = (temp & 0xFFF3) | (pConfig->vhtTxMCS2x2 << 2); VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, - "vhtRxMCS2x2 - %x temp - %lu enable2x2 %d\n", + "vhtRxMCS2x2 - %x temp - %u enable2x2 %d\n", pConfig->vhtRxMCS2x2, temp, pConfig->enable2x2); if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_TX_MCS_MAP, diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c index 7bcc30198d7d..4badb4ae5543 100644 --- a/CORE/HDD/src/wlan_hdd_early_suspend.c +++ b/CORE/HDD/src/wlan_hdd_early_suspend.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -1707,7 +1707,7 @@ VOS_STATUS hdd_wlan_re_init(void *hif_sc) adf_ctx = vos_mem_malloc(sizeof(adf_os_device_t)); if (!adf_ctx) { - hddLog(VOS_TRACE_LEVEL_FATAL,"%s: Failed to allocate adf_ctx"); + hddLog(VOS_TRACE_LEVEL_FATAL,"%s: Failed to allocate adf_ctx", __func__); goto err_re_init; } vos_mem_zero(adf_ctx, sizeof(adf_os_device_t)); diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index 31cd11df4f70..500f73ad0f30 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -8554,8 +8554,8 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc) adf_ctx = vos_mem_malloc(sizeof(*adf_ctx)); if (!adf_ctx) { - hddLog(VOS_TRACE_LEVEL_FATAL,"%s: Failed to allocate adf_ctx"); - goto err_free_hdd_context; + hddLog(VOS_TRACE_LEVEL_FATAL,"%s: Failed to allocate adf_ctx", __func__); + goto err_free_hdd_context; } vos_mem_zero(adf_ctx, sizeof(*adf_ctx)); #ifdef QCA_WIFI_ISOC |
