qcacld-3.0: Replace DEBUG macro with WLAN_DEBUG

This is a qcacld-2.0 to qcacld-3.0 propagation.

pr_debug() should not appear by default in kernel log (kmsg).
DEBUG is a kernel macro, since host driver is using the same name macro,
pr_debug log statements are appearing in kmsg.

Fix this by moving the code under DEBUG to WLAN_DEBUG and
remove DEBUG macro from Kbuild.

Change-Id: I5bb385f91f9b6ba15629a5878625fefc21d4a7e1
CRs-Fixed: 1003261
This commit is contained in:
Srinivas Girigowda
2016-10-18 12:26:15 -07:00
committed by qcabuildsw
parent 90cdd3cda2
commit 6147c58dff
9 changed files with 15 additions and 16 deletions

3
Kbuild
View File

@@ -1168,8 +1168,7 @@ CDEFINES += -DWLAN_DEBUG \
-DSME_TRACE_RECORD \ -DSME_TRACE_RECORD \
-DHDD_TRACE_RECORD \ -DHDD_TRACE_RECORD \
-DPE_DEBUG_LOGW \ -DPE_DEBUG_LOGW \
-DPE_DEBUG_LOGE \ -DPE_DEBUG_LOGE
-DDEBUG
endif endif
ifeq ($(CONFIG_SLUB_DEBUG_ON),y) ifeq ($(CONFIG_SLUB_DEBUG_ON),y)

View File

@@ -527,7 +527,7 @@ void ramdump_work_handler(void *data)
} }
tgt_info = hif_get_target_info_handle(ramdump_scn); tgt_info = hif_get_target_info_handle(ramdump_scn);
target_type = tgt_info->target_type; target_type = tgt_info->target_type;
#ifdef DEBUG #ifdef WLAN_DEBUG
ret = hif_check_soc_status(ramdump_scn); ret = hif_check_soc_status(ramdump_scn);
if (ret) if (ret)
goto out_fail; goto out_fail;

View File

@@ -169,7 +169,7 @@ typedef struct {
#define QCSAP_IOCTL_GET_INI_CFG (SIOCIWFIRSTPRIV + 25) #define QCSAP_IOCTL_GET_INI_CFG (SIOCIWFIRSTPRIV + 25)
#define QCSAP_IOCTL_SET_INI_CFG (SIOCIWFIRSTPRIV + 26) #define QCSAP_IOCTL_SET_INI_CFG (SIOCIWFIRSTPRIV + 26)
#define QCSAP_IOCTL_SET_TWO_INT_GET_NONE (SIOCIWFIRSTPRIV + 28) #define QCSAP_IOCTL_SET_TWO_INT_GET_NONE (SIOCIWFIRSTPRIV + 28)
#ifdef DEBUG #ifdef WLAN_DEBUG
#define QCSAP_IOCTL_SET_FW_CRASH_INJECT 1 #define QCSAP_IOCTL_SET_FW_CRASH_INJECT 1
#endif #endif
#define QCSAP_IOCTL_DUMP_DP_TRACE_LEVEL 2 #define QCSAP_IOCTL_DUMP_DP_TRACE_LEVEL 2

View File

@@ -68,7 +68,7 @@
#include "pld_common.h" #include "pld_common.h"
#include "wma.h" #include "wma.h"
#ifdef DEBUG #ifdef WLAN_DEBUG
#include "wma_api.h" #include "wma_api.h"
#endif #endif
#include "wlan_hdd_trace.h" #include "wlan_hdd_trace.h"
@@ -2339,7 +2339,7 @@ static int __iw_softap_set_two_ints_getnone(struct net_device *dev,
goto out; goto out;
switch (sub_cmd) { switch (sub_cmd) {
#ifdef DEBUG #ifdef WLAN_DEBUG
case QCSAP_IOCTL_SET_FW_CRASH_INJECT: case QCSAP_IOCTL_SET_FW_CRASH_INJECT:
hdd_err("WE_SET_FW_CRASH_INJECT: %d %d", hdd_err("WE_SET_FW_CRASH_INJECT: %d %d",
value[1], value[2]); value[1], value[2]);
@@ -5480,7 +5480,7 @@ static const struct iw_priv_args hostapd_private_args[] = {
} }
, ,
/* handlers for sub-ioctl */ /* handlers for sub-ioctl */
#ifdef DEBUG #ifdef WLAN_DEBUG
{ {
QCSAP_IOCTL_SET_FW_CRASH_INJECT, QCSAP_IOCTL_SET_FW_CRASH_INJECT,
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2,

View File

@@ -433,7 +433,7 @@ static const hdd_freq_chan_map_t freq_chan_map[] = {
/* Private ioctls and their sub-ioctls */ /* Private ioctls and their sub-ioctls */
#define WLAN_PRIV_SET_TWO_INT_GET_NONE (SIOCIWFIRSTPRIV + 28) #define WLAN_PRIV_SET_TWO_INT_GET_NONE (SIOCIWFIRSTPRIV + 28)
#define WE_SET_SMPS_PARAM 1 #define WE_SET_SMPS_PARAM 1
#ifdef DEBUG #ifdef WLAN_DEBUG
#define WE_SET_FW_CRASH_INJECT 2 #define WE_SET_FW_CRASH_INJECT 2
#endif #endif
#define WE_DUMP_DP_TRACE_LEVEL 3 #define WE_DUMP_DP_TRACE_LEVEL 3
@@ -9824,7 +9824,7 @@ static int __iw_set_two_ints_getnone(struct net_device *dev,
| value[2], | value[2],
VDEV_CMD); VDEV_CMD);
break; break;
#ifdef DEBUG #ifdef WLAN_DEBUG
case WE_SET_FW_CRASH_INJECT: case WE_SET_FW_CRASH_INJECT:
hdd_err("WE_SET_FW_CRASH_INJECT: %d %d", hdd_err("WE_SET_FW_CRASH_INJECT: %d %d",
value[1], value[2]); value[1], value[2]);
@@ -11093,7 +11093,7 @@ static const struct iw_priv_args we_private_args[] = {
IW_PRIV_TYPE_BYTE | sizeof(struct dot11p_channel_sched), IW_PRIV_TYPE_BYTE | sizeof(struct dot11p_channel_sched),
0, "set_dot11p" } 0, "set_dot11p" }
, ,
#ifdef DEBUG #ifdef WLAN_DEBUG
{WE_SET_FW_CRASH_INJECT, {WE_SET_FW_CRASH_INJECT,
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 2,
0, "crash_inject"} 0, "crash_inject"}

View File

@@ -53,7 +53,7 @@
#include <a_debug.h> #include <a_debug.h>
#define FWLOG_DEBUG ATH_DEBUG_MAKE_MODULE_MASK(0) #define FWLOG_DEBUG ATH_DEBUG_MAKE_MODULE_MASK(0)
#if defined(DEBUG) #ifdef WLAN_DEBUG
static int get_version; static int get_version;
static int gprint_limiter; static int gprint_limiter;

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2015 The Linux Foundation. All rights reserved. * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
* *
* Previously licensed under the ISC license by Qualcomm Atheros, Inc. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
* *
@@ -147,7 +147,7 @@ typedef struct _ATH_DEBUG_MODULE_DBG_INFO {
#define GET_ATH_MODULE_DEBUG_VAR_MASK(s) _XGET_ATH_MODULE_NAME_DEBUG_(s).CurrentMask #define GET_ATH_MODULE_DEBUG_VAR_MASK(s) _XGET_ATH_MODULE_NAME_DEBUG_(s).CurrentMask
#define _XGET_ATH_MODULE_NAME_DEBUG_(s) debug_ ## s #define _XGET_ATH_MODULE_NAME_DEBUG_(s) debug_ ## s
#ifdef DEBUG #ifdef WLAN_DEBUG
/* for source files that will instantiate the debug variables */ /* for source files that will instantiate the debug variables */
#define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s,name,moddesc,initmask,count,descriptions) \ #define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s,name,moddesc,initmask,count,descriptions) \

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2015 The Linux Foundation. All rights reserved. * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
* *
* Previously licensed under the ISC license by Qualcomm Atheros, Inc. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
* *
@@ -31,7 +31,7 @@
/* macro to remove parens */ /* macro to remove parens */
#define ATH_PRINTX_ARG(arg ...) arg #define ATH_PRINTX_ARG(arg ...) arg
#ifdef DEBUG #ifdef WLAN_DEBUG
/* NOTE: the AR_DEBUG_PRINTF macro is defined here to handle special handling of variable arg macros /* NOTE: the AR_DEBUG_PRINTF macro is defined here to handle special handling of variable arg macros
* which may be compiler dependent. */ * which may be compiler dependent. */
#define AR_DEBUG_PRINTF(mask, args) do { \ #define AR_DEBUG_PRINTF(mask, args) do { \

View File

@@ -133,7 +133,7 @@ typedef struct timer_list A_TIMER;
}) })
#endif /* wait_event_interruptible_timeout */ #endif /* wait_event_interruptible_timeout */
#ifdef DEBUG #ifdef WLAN_DEBUG
#ifdef A_SIMOS_DEVHOST #ifdef A_SIMOS_DEVHOST
extern unsigned int panic_on_assert; extern unsigned int panic_on_assert;
#define A_ASSERT(expr) \ #define A_ASSERT(expr) \