From 8ea28806bf5443ebf2e3449f810961ddbcf26d01 Mon Sep 17 00:00:00 2001 From: YK Jeffrey Chao Date: Fri, 24 Aug 2012 11:47:04 -0700 Subject: Remove hardcoded trace level settings in stack modules. BTM, BTU, and BTA modules were preset with hardcoded trace level (BT_TRACE_LEVEL_DEBUG) during early development days. Since the trace levels have been made configurable in /etc/bluetooth/bt_stack.conf at run-time, removing those hardcoded settings. So, the compile-time default trace level BT_TRACE_LEVEL_WARNING (set in bt_trace.h) will be used if the bt_stack.conf is missing, or if the TraceConf=false is given in the bt_stack.conf. Change-Id: I76d905adbfda3c40f714398da86ebec90a1a8a40 --- stack/btm/btm_main.c | 2 -- stack/btu/btu_init.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'stack') diff --git a/stack/btm/btm_main.c b/stack/btm/btm_main.c index 42489e1..67be0f2 100644 --- a/stack/btm/btm_main.c +++ b/stack/btm/btm_main.c @@ -43,8 +43,6 @@ void btm_init (void) #else btm_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ #endif - /* TODO Bluedroid - Hardcoded trace level. Needs to be configurable */ - btm_cb.trace_level = BT_TRACE_LEVEL_DEBUG; /* Initialize BTM component structures */ btm_inq_db_init(); /* Inquiry Database and Structures */ btm_acl_init(); /* ACL Database and Structures */ diff --git a/stack/btu/btu_init.c b/stack/btu/btu_init.c index b1b7b2b..a153ed8 100644 --- a/stack/btu/btu_init.c +++ b/stack/btu/btu_init.c @@ -85,7 +85,7 @@ void BTE_Init(void) #if (BLE_INCLUDED == TRUE) btu_cb.hcit_ble_acl_pkt_size = BTU_DEFAULT_BLE_DATA_SIZE + HCI_DATA_PREAMBLE_SIZE; #endif - btu_cb.trace_level = BT_TRACE_LEVEL_DEBUG; //HCI_INITIAL_TRACE_LEVEL; + btu_cb.trace_level = HCI_INITIAL_TRACE_LEVEL; for ( i = 0; i < BTU_MAX_LOCAL_CTRLS; i++ ) /* include BR/EDR */ btu_cb.hci_cmd_cb[i].cmd_window = 1; -- cgit v1.1