summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-12-05 14:09:28 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-07 22:38:34 -0800
commit8c808e4d38fb44d68b2b3d0ea9433a687dda0df4 (patch)
tree84d370e7c8e21d7262286e3c1e9986d13ecdd817
parent1ba5c22e5f40735a96464c75017ce8c9f087d69d (diff)
qcacld-3.0: Convert wlan_hdd_conc_ut.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_conc_ut.c to use the unified set of APIs. Change-Id: I7aae78754ba46907b37e455092e84b2e1b663565 CRs-Fixed: 1097457
-rw-r--r--core/hdd/src/wlan_hdd_conc_ut.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/hdd/src/wlan_hdd_conc_ut.c b/core/hdd/src/wlan_hdd_conc_ut.c
index b792ddfc0c30..6d1e048c23b4 100644
--- a/core/hdd/src/wlan_hdd_conc_ut.c
+++ b/core/hdd/src/wlan_hdd_conc_ut.c
@@ -25,6 +25,9 @@
* to the Linux Foundation.
*/
+/* denote that this file does not allow legacy hddLog */
+#define HDD_DISALLOW_LEGACY_HDDLOG 1
+
/* Include files */
#include <wlan_hdd_includes.h>
@@ -646,8 +649,7 @@ void wlan_hdd_one_connection_scenario(hdd_context_t *hdd_ctx)
for (sub_type = 0; sub_type < CDS_MAX_NUM_OF_MODE; sub_type++) {
/* validate one connection is created or no */
if (cds_get_connection_count() != 0) {
- hddLog(LOGE,
- FL("Test failed - No. of connection is not 0"));
+ hdd_err("Test failed - No. of connection is not 0");
return;
}
qdf_mem_zero(pcl, sizeof(pcl));
@@ -711,8 +713,7 @@ void wlan_hdd_two_connections_scenario(hdd_context_t *hdd_ctx,
channel_id, mac_id);
/* validate one connection is created or no */
if (cds_get_connection_count() != 1) {
- hddLog(LOGE,
- FL("Test failed - No. of connection is not 1"));
+ hdd_err("Test failed - No. of connection is not 1");
return;
}
next_sub_type = CDS_STA_MODE;
@@ -722,7 +723,7 @@ void wlan_hdd_two_connections_scenario(hdd_context_t *hdd_ctx,
cds_get_second_connection_pcl_table_index();
if (CDS_MAX_ONE_CONNECTION_MODE == second_index) {
/* not valid combination*/
- hddLog(LOGE, FL("couldn't find index for 2nd connection pcl table"));
+ hdd_err("couldn't find index for 2nd connection pcl table");
next_sub_type++;
continue;
}
@@ -814,8 +815,7 @@ void wlan_hdd_three_connections_scenario(hdd_context_t *hdd_ctx,
dummy_type_1, channel_id_1, mac_id_1);
/* validate one connection is created or no */
if (cds_get_connection_count() != 1) {
- hddLog(LOGE,
- FL("Test fail - No. of connection not 1"));
+ hdd_err("Test fail - No. of connection not 1");
return;
}
for (sub_type_2 = CDS_STA_MODE;
@@ -830,8 +830,7 @@ void wlan_hdd_three_connections_scenario(hdd_context_t *hdd_ctx,
dummy_type_2, channel_id_2, mac_id_2);
/* validate two connections are created or no */
if (cds_get_connection_count() != 2) {
- hddLog(LOGE,
- FL("Test fail - No. connection not 2"));
+ hdd_err("Test fail - No. connection not 2");
return;
}
next_sub_type = CDS_STA_MODE;