qcacmn: Use hal_verbose_debug() to print msgs which come excessively

Some of the print messages in HAL module come very excessively.
Use hal_verbose_debug() API to print them.

CRs-fixed: 2405028
Change-Id: I4b4754af65c00edb571de898527026b6183ef15f
This commit is contained in:
Krunal Soni
2019-02-22 15:39:03 -08:00
committed by nshrivas
parent c96a1167f8
commit 9911b44343
7 changed files with 429 additions and 397 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -30,6 +30,26 @@
#define hal_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_TXRX, params)
#define hal_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_TXRX, params)
#define hal_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_TXRX, params)
#ifdef ENABLE_VERBOSE_DEBUG
extern bool is_hal_verbose_debug_enabled;
#define hal_verbose_debug(params...) \
if (unlikely(is_hal_verbose_debug_enabled)) \
do {\
QDF_TRACE_DEBUG(QDF_MODULE_ID_TXRX, params); \
} while (0)
#define hal_verbose_hex_dump(params...) \
if (unlikely(is_hal_verbose_debug_enabled)) \
do {\
QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_TXRX, \
QDF_TRACE_LEVEL_DEBUG, \
params); \
} while (0)
#else
#define hal_verbose_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_TXRX, params)
#define hal_verbose_hex_dump(params...) \
QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG, \
params)
#endif
/* TBD: This should be movded to shared HW header file */