Browse Source

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

Change-Id: I41f40000031a6a7203bebfdd4fcf11cc0673a973
CRs-Fixed: 959683
Jeff Johnson 9 years ago
parent
commit
a6177c31b6
1 changed files with 5 additions and 2 deletions
  1. 5 2
      core/hdd/src/wlan_hdd_trace.c

+ 5 - 2
core/hdd/src/wlan_hdd_trace.c

@@ -34,6 +34,9 @@
  *
  */
 
+/* denote that this file does not allow legacy hddLog */
+#define HDD_DISALLOW_LEGACY_HDDLOG 1
+
 #include "qdf_trace.h"
 #include "qdf_types.h"
 #include "wlan_hdd_trace.h"
@@ -51,11 +54,11 @@ static void
 hdd_trace_dump(void *mac, tp_qdf_trace_record record, uint16_t index)
 {
 	if (TRACE_CODE_HDD_RX_SME_MSG == record->code)
-		hddLog(LOGE, "%04d    %012llu  S%d    %-14s  %-30s(0x%x) ",
+		hdd_err("%04d    %012llu  S%d    %-14s  %-30s(0x%x)",
 			index, record->time, record->session, "RX SME MSG:",
 			get_e_roam_cmd_status_str(record->data), record->data);
 	else
-		hddLog(LOGE, "%04d    %012llu  S%d    %-14s  %-30s(0x%x) ",
+		hdd_err("%04d    %012llu  S%d    %-14s  %-30s(0x%x)",
 			index, record->time, record->session, "HDD Event:",
 			hdd_trace_event_string(record->code), record->data);
 }