qcacld-3.0: Convert wlan_hdd_lpass.c to unified logging
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_lpass.c to use the unified set of APIs.
Change-Id: I34c145c43507ff882e371d05cb59c7ec73f366e5
CRs-Fixed: 1018555
diff --git a/core/hdd/src/wlan_hdd_lpass.c b/core/hdd/src/wlan_hdd_lpass.c
index 00fa438..34f97eb 100644
--- a/core/hdd/src/wlan_hdd_lpass.c
+++ b/core/hdd/src/wlan_hdd_lpass.c
@@ -32,6 +32,9 @@
*
*/
+/* denote that this file does not allow legacy hddLog */
+#define HDD_DISALLOW_LEGACY_HDDLOG 1
+
/* Include Files */
#include "wlan_hdd_main.h"
#include "wlan_hdd_lpass.h"
@@ -60,7 +63,7 @@
uint8_t buflen = WLAN_SVC_COUNTRY_CODE_LEN;
if (!data) {
- hddLog(LOGE, FL("invalid data pointer"));
+ hdd_err("invalid data pointer");
return -EINVAL;
}
if (!adapter) {
@@ -70,7 +73,7 @@
data->is_on = is_on;
return 0;
}
- hddLog(LOGE, FL("invalid adapter pointer"));
+ hdd_err("invalid adapter pointer");
return -EINVAL;
}
@@ -124,7 +127,7 @@
const char *chip_name)
{
if (!data) {
- hddLog(LOGE, FL("invalid data pointer"));
+ hdd_err("invalid data pointer");
return -EINVAL;
}
@@ -219,8 +222,7 @@
QDF_STATUS status;
if (!hdd_ctx) {
- hddLog(QDF_TRACE_LEVEL_ERROR,
- FL("NULL pointer for hdd_ctx"));
+ hdd_err("NULL pointer for hdd_ctx");
return;
}