Explorar el Código

qcacld-3.0: Convert wlan_hdd_ftm.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_ftm.c to use the unified set of APIs.

Change-Id: I58b2214ba1243e93dd5e3c9b6774c08537094139
CRs-Fixed: 937659
Jeff Johnson hace 8 años
padre
commit
6f91707904
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      core/hdd/src/wlan_hdd_ftm.c

+ 6 - 6
core/hdd/src/wlan_hdd_ftm.c

@@ -31,6 +31,9 @@
  * This file contains the WLAN factory test mode implementation
  */
 
+/* denote that this file does not allow legacy hddLog */
+#define HDD_DISALLOW_LEGACY_HDDLOG 1
+
 #include <cds_mq.h>
 #include "cds_sched.h"
 #include <cds_api.h>
@@ -102,8 +105,7 @@ static uint32_t wlan_ftm_postmsg(uint8_t *cmd_ptr, uint16_t cmd_len)
 
 	if (QDF_STATUS_SUCCESS != cds_mq_post_message(QDF_MODULE_ID_WMA,
 						      &ftmMsg)) {
-		hddLog(QDF_TRACE_LEVEL_ERROR, "%s: : Failed to post Msg to HAL",
-		       __func__);
+		hdd_err("Failed to post Msg to HAL");
 
 		return QDF_STATUS_E_FAILURE;
 	}
@@ -377,16 +379,14 @@ QDF_STATUS wlan_hdd_ftm_testmode_cmd(void *data, int len)
 		   qdf_mem_malloc(sizeof(*cmd_data));
 
 	if (!cmd_data) {
-		QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
-			  ("Failed to allocate FTM command data"));
+		hdd_err("Failed to allocate FTM command data");
 		return QDF_STATUS_E_NOMEM;
 	}
 
 	cmd_data->data = qdf_mem_malloc(len);
 
 	if (!cmd_data->data) {
-		QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
-			  ("Failed to allocate FTM command data buffer"));
+		hdd_err("Failed to allocate FTM command data buffer");
 		qdf_mem_free(cmd_data);
 		return QDF_STATUS_E_NOMEM;
 	}