summaryrefslogtreecommitdiffstats
path: root/btif/src
diff options
context:
space:
mode:
authorChris Manton <cmanton@google.com>2015-03-12 09:22:48 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:49 -0700
commitf8027005333c88a2f097cfd70d15c3d54c7764ae (patch)
tree3f256e99e92e8b07ac6865e6b3dc260fed67578c /btif/src
parent72a1c0904bbbaf2e8c7a8c559f6ab695e3a16b2a (diff)
downloadandroid_system_bt-f8027005333c88a2f097cfd70d15c3d54c7764ae.tar.gz
android_system_bt-f8027005333c88a2f097cfd70d15c3d54c7764ae.tar.bz2
android_system_bt-f8027005333c88a2f097cfd70d15c3d54c7764ae.zip
Demote, cleanup and extend observed logging
Diffstat (limited to 'btif/src')
-rw-r--r--btif/src/bluetooth.c2
-rw-r--r--btif/src/btif_av.c2
-rw-r--r--btif/src/btif_core.c4
-rw-r--r--btif/src/btif_dm.c33
-rw-r--r--btif/src/btif_gatt.c2
-rw-r--r--btif/src/btif_gatt_client.c2
-rw-r--r--btif/src/btif_gatt_multi_adv_util.c2
-rw-r--r--btif/src/btif_gatt_server.c2
-rw-r--r--btif/src/btif_gatt_test.c2
-rw-r--r--btif/src/btif_gatt_util.c2
-rw-r--r--btif/src/btif_hf.c2
-rw-r--r--btif/src/btif_hf_client.c2
-rw-r--r--btif/src/btif_hh.c2
-rw-r--r--btif/src/btif_hl.c2
-rw-r--r--btif/src/btif_mce.c2
-rw-r--r--btif/src/btif_media_task.c2
-rw-r--r--btif/src/btif_pan.c2
-rw-r--r--btif/src/btif_profile_queue.c2
-rw-r--r--btif/src/btif_rc.c2
-rw-r--r--btif/src/btif_sm.c2
-rw-r--r--btif/src/btif_sock.c2
-rw-r--r--btif/src/btif_sock_rfc.c2
-rw-r--r--btif/src/btif_sock_sco.c2
-rw-r--r--btif/src/btif_sock_sdp.c2
-rw-r--r--btif/src/btif_sock_thread.c2
-rw-r--r--btif/src/btif_sock_util.c2
-rw-r--r--btif/src/btif_storage.c4
-rw-r--r--btif/src/btif_util.c2
28 files changed, 47 insertions, 44 deletions
diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c
index c6f550cd9..18d03390b 100644
--- a/btif/src/bluetooth.c
+++ b/btif/src/bluetooth.c
@@ -41,7 +41,7 @@
#include <hardware/bt_rc.h>
#define LOG_NDDEBUG 0
-#define LOG_TAG "bluedroid"
+#define LOG_TAG "bt_bluedroid"
#include "btif_api.h"
#include "btsnoop.h"
diff --git a/btif/src/btif_av.c b/btif/src/btif_av.c
index ba83f0a84..28d0d9a79 100644
--- a/btif/src/btif_av.c
+++ b/btif/src/btif_av.c
@@ -29,7 +29,7 @@
#include <system/audio.h>
#include "hardware/bt_av.h"
-#define LOG_TAG "BTIF_AV"
+#define LOG_TAG "bt_btif_av"
#include "btif_av.h"
#include "btif_util.h"
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c
index 4894000c6..3dd5b2b32 100644
--- a/btif/src/btif_core.c
+++ b/btif/src/btif_core.c
@@ -36,8 +36,10 @@
#include <sys/stat.h>
#include <sys/types.h>
-#define LOG_TAG "BTIF_CORE"
+#define LOG_TAG "bt_btif_core"
#include "btcore/include/bdaddr.h"
+
+#include "bdaddr.h"
#include "bt_utils.h"
#include "bta_api.h"
#include "bte.h"
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index 3dd7d3ec9..399410bf5 100644
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -25,7 +25,7 @@
*
***********************************************************************************/
-#define LOG_TAG "btif_dm"
+#define LOG_TAG "bt_btif_dm"
#include <stdio.h>
#include <stdlib.h>
@@ -47,6 +47,7 @@
#include "bta_gatt_api.h"
#include "include/stack_config.h"
+
#include "osi/include/log.h"
/******************************************************************************
@@ -373,7 +374,7 @@ BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod)
sizeof(uint32_t), &remote_cod);
if (btif_storage_get_remote_device_property((bt_bdaddr_t *)remote_bdaddr, &prop_name) == BT_STATUS_SUCCESS)
{
- BTIF_TRACE_ERROR("%s: remote_cod = 0x%06x", __FUNCTION__, remote_cod);
+ LOG_INFO("%s remote_cod = 0x%08x cod = 0x%08x", __func__, remote_cod, cod);
if ((remote_cod & 0x7ff) == cod)
return TRUE;
}
@@ -559,16 +560,16 @@ static void btif_update_remote_properties(BD_ADDR bd_addr, BD_NAME bd_name,
/* class of device */
cod = devclass2uint(dev_class);
- BTIF_TRACE_DEBUG("%s():cod is 0x%06x", __FUNCTION__, cod);
+ BTIF_TRACE_DEBUG("%s cod is 0x%06x", __func__, cod);
if ( cod == 0) {
/* Try to retrieve cod from storage */
- BTIF_TRACE_DEBUG("%s():cod is 0, checking cod from storage", __FUNCTION__);
+ BTIF_TRACE_DEBUG("%s cod is 0, checking cod from storage", __func__);
BTIF_STORAGE_FILL_PROPERTY(&properties[num_properties],
BT_PROPERTY_CLASS_OF_DEVICE, sizeof(cod), &cod);
status = btif_storage_get_remote_device_property(&bdaddr, &properties[num_properties]);
- BTIF_TRACE_DEBUG("%s():cod retreived from storage is 0x%06x", __FUNCTION__, cod);
+ BTIF_TRACE_DEBUG("%s cod retrieved from storage is 0x%06x", __func__, cod);
if ( cod == 0) {
- BTIF_TRACE_DEBUG("%s():cod is again 0, set as unclassified", __FUNCTION__);
+ BTIF_TRACE_DEBUG("%s cod is again 0, set as unclassified", __func__);
cod = COD_UNCLASSIFIED;
}
}
@@ -848,8 +849,8 @@ static void btif_dm_pin_req_evt(tBTA_DM_PIN_REQ *p_pin_req)
cod = devclass2uint(p_pin_req->dev_class);
- if ( cod == 0) {
- BTIF_TRACE_DEBUG("%s():cod is 0, set as unclassified", __FUNCTION__);
+ if (cod == 0) {
+ BTIF_TRACE_DEBUG("%s cod is 0, set as unclassified", __func__);
cod = COD_UNCLASSIFIED;
}
@@ -968,8 +969,8 @@ static void btif_dm_ssp_cfm_req_evt(tBTA_DM_SP_CFM_REQ *p_ssp_cfm_req)
cod = devclass2uint(p_ssp_cfm_req->dev_class);
- if ( cod == 0) {
- LOG_DEBUG("cod is 0, set as unclassified");
+ if (cod == 0) {
+ LOG_DEBUG("%s cod is 0, set as unclassified", __func__);
cod = COD_UNCLASSIFIED;
}
@@ -1003,8 +1004,8 @@ static void btif_dm_ssp_key_notif_evt(tBTA_DM_SP_KEY_NOTIF *p_ssp_key_notif)
pairing_cb.is_ssp = TRUE;
cod = devclass2uint(p_ssp_key_notif->dev_class);
- if ( cod == 0) {
- LOG_DEBUG("cod is 0, set as unclassified");
+ if (cod == 0) {
+ LOG_DEBUG("%s cod is 0, set as unclassified", __func__);
cod = COD_UNCLASSIFIED;
}
@@ -1247,8 +1248,8 @@ static void btif_dm_search_devices_evt (UINT16 event, char *p_param)
cod = devclass2uint (p_search_data->inq_res.dev_class);
- if ( cod == 0) {
- LOG_DEBUG("cod is 0, set as unclassified");
+ if (cod == 0) {
+ LOG_DEBUG("%s cod is 0, set as unclassified", __func__);
cod = COD_UNCLASSIFIED;
}
@@ -1407,7 +1408,7 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param)
{
char temp[256];
uuid_to_string_legacy((bt_uuid_t*)(p_data->disc_res.p_uuid_list + (i*MAX_UUID_SIZE)), temp);
- BTIF_TRACE_ERROR("Index: %d uuid:%s", i, temp);
+ LOG_INFO("%s index:%d uuid:%s", __func__, i, temp);
}
}
@@ -1467,7 +1468,7 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param)
}
uuid_to_string_legacy(&uuid, temp);
- BTIF_TRACE_ERROR(" uuid:%s", temp);
+ LOG_INFO("%s uuid:%s", __func__, temp);
bdcpy(bd_addr.address, p_data->disc_ble_res.bd_addr);
prop.type = BT_PROPERTY_UUIDS;
diff --git a/btif/src/btif_gatt.c b/btif/src/btif_gatt.c
index ebc03b6a9..50ebaee54 100644
--- a/btif/src/btif_gatt.c
+++ b/btif/src/btif_gatt.c
@@ -32,7 +32,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BtGatt.btif"
+#define LOG_TAG "bt_btif_gatt"
#include "btif_common.h"
#include "btif_util.h"
diff --git a/btif/src/btif_gatt_client.c b/btif/src/btif_gatt_client.c
index bfffcd471..131405587 100644
--- a/btif/src/btif_gatt_client.c
+++ b/btif/src/btif_gatt_client.c
@@ -31,7 +31,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BtGatt.btif"
+#define LOG_TAG "bt_btif_gattc"
#include "btcore/include/bdaddr.h"
#include "btif_common.h"
diff --git a/btif/src/btif_gatt_multi_adv_util.c b/btif/src/btif_gatt_multi_adv_util.c
index 2a61cc8ec..7e5dc8d95 100644
--- a/btif/src/btif_gatt_multi_adv_util.c
+++ b/btif/src/btif_gatt_multi_adv_util.c
@@ -30,7 +30,7 @@
#include "btu.h"
#include "bt_target.h"
-#define LOG_TAG "BtGatt.btif"
+#define LOG_TAG "bt_btif_gatt"
#if (BLE_INCLUDED == TRUE)
#include "btif_gatt_multi_adv_util.h"
diff --git a/btif/src/btif_gatt_server.c b/btif/src/btif_gatt_server.c
index 3a4fa29a8..1632b0180 100644
--- a/btif/src/btif_gatt_server.c
+++ b/btif/src/btif_gatt_server.c
@@ -32,7 +32,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BtGatt.btif"
+#define LOG_TAG "bt_btif_gatt"
#include "btif_common.h"
#include "btif_util.h"
diff --git a/btif/src/btif_gatt_test.c b/btif/src/btif_gatt_test.c
index 219136f0c..4ccf5b04d 100644
--- a/btif/src/btif_gatt_test.c
+++ b/btif/src/btif_gatt_test.c
@@ -24,7 +24,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BtGatt.btif_test"
+#define LOG_TAG "bt_btif_gatt"
#include "btif_common.h"
#include "btif_util.h"
diff --git a/btif/src/btif_gatt_util.c b/btif/src/btif_gatt_util.c
index df0600b97..11a41ea09 100644
--- a/btif/src/btif_gatt_util.c
+++ b/btif/src/btif_gatt_util.c
@@ -23,7 +23,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BtGatt.btif"
+#define LOG_TAG "bt_btif_gatt"
#include "btcore/include/bdaddr.h"
#include "bta_api.h"
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 02006cd08..25ced488a 100644
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -29,7 +29,7 @@
#include <hardware/bt_hf.h>
#include <stdlib.h>
-#define LOG_TAG "BTIF_HF"
+#define LOG_TAG "bt_btif_hf"
#include "btif_common.h"
#include "btif_util.h"
#include "btif_profile_queue.h"
diff --git a/btif/src/btif_hf_client.c b/btif/src/btif_hf_client.c
index 196578b7e..7bc2d9adb 100644
--- a/btif/src/btif_hf_client.c
+++ b/btif/src/btif_hf_client.c
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <cutils/properties.h>
-#define LOG_TAG "BTIF_HF_CLIENT"
+#define LOG_TAG "bt_btif_hfc"
#include "btif_common.h"
#include "btif_util.h"
#include "btif_profile_queue.h"
diff --git a/btif/src/btif_hh.c b/btif/src/btif_hh.c
index 99ce37331..20c8e3c9d 100644
--- a/btif/src/btif_hh.c
+++ b/btif/src/btif_hh.c
@@ -31,7 +31,7 @@
#include <errno.h>
#include <string.h>
-#define LOG_TAG "BTIF_HH"
+#define LOG_TAG "bt_btif_hh"
#include "bta_api.h"
#include "bta_hh_api.h"
diff --git a/btif/src/btif_hl.c b/btif/src/btif_hl.c
index 1d7394de1..d11ba25e7 100644
--- a/btif/src/btif_hl.c
+++ b/btif/src/btif_hl.c
@@ -24,7 +24,7 @@
*
*
***********************************************************************************/
-#define LOG_TAG "BTIF_HL"
+#define LOG_TAG "bt_btif_hl"
#include <assert.h>
#include <ctype.h>
diff --git a/btif/src/btif_mce.c b/btif/src/btif_mce.c
index 9961e2d8b..bf4c3bd1b 100644
--- a/btif/src/btif_mce.c
+++ b/btif/src/btif_mce.c
@@ -30,7 +30,7 @@
#include <hardware/bt_mce.h>
#include <stdlib.h>
-#define LOG_TAG "BTIF_MCE"
+#define LOG_TAG "bt_btif_mce"
#include "btif_common.h"
#include "btif_util.h"
#include "btif_profile_queue.h"
diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c
index 2ff766441..d1dac727f 100644
--- a/btif/src/btif_media_task.c
+++ b/btif/src/btif_media_task.c
@@ -26,7 +26,7 @@
**
******************************************************************************/
-#define LOG_TAG "btif-media"
+#define LOG_TAG "bt_btif_media"
#include <assert.h>
#include <string.h>
diff --git a/btif/src/btif_pan.c b/btif/src/btif_pan.c
index c412f2baa..d7228c313 100644
--- a/btif/src/btif_pan.c
+++ b/btif/src/btif_pan.c
@@ -46,7 +46,7 @@
#include <linux/if_tun.h>
#include <linux/if_ether.h>
-#define LOG_TAG "BTIF_PAN"
+#define LOG_TAG "bt_btif_pan"
#include "btif_common.h"
#include "btif_util.h"
#include "btm_api.h"
diff --git a/btif/src/btif_profile_queue.c b/btif/src/btif_profile_queue.c
index 0d3e49e19..87a008cf6 100644
--- a/btif/src/btif_profile_queue.c
+++ b/btif/src/btif_profile_queue.c
@@ -27,7 +27,7 @@
#include <assert.h>
#include <hardware/bluetooth.h>
-#define LOG_TAG "BTIF_QUEUE"
+#define LOG_TAG "bt_btif_queue"
#include "btif_common.h"
#include "btif_profile_queue.h"
#include "gki.h"
diff --git a/btif/src/btif_rc.c b/btif/src/btif_rc.c
index 7a9eaf674..80a10da98 100644
--- a/btif/src/btif_rc.c
+++ b/btif/src/btif_rc.c
@@ -31,7 +31,7 @@
#include "avrc_defs.h"
#include "gki.h"
-#define LOG_TAG "BTIF_RC"
+#define LOG_TAG "bt_btif_avrc"
#include "btif_common.h"
#include "btif_util.h"
#include "btif_av.h"
diff --git a/btif/src/btif_sm.c b/btif/src/btif_sm.c
index f8b4fea51..61409aeac 100644
--- a/btif/src/btif_sm.c
+++ b/btif/src/btif_sm.c
@@ -25,7 +25,7 @@
*
*****************************************************************************/
-#define LOG_TAG "BTIF_SM"
+#define LOG_TAG "bt_btif"
#include <hardware/bluetooth.h>
diff --git a/btif/src/btif_sock.c b/btif/src/btif_sock.c
index 072132489..831ae7341 100644
--- a/btif/src/btif_sock.c
+++ b/btif/src/btif_sock.c
@@ -16,7 +16,7 @@
*
******************************************************************************/
-#define LOG_TAG "btif_sock"
+#define LOG_TAG "bt_btif_sock"
#include <assert.h>
#include <hardware/bluetooth.h>
diff --git a/btif/src/btif_sock_rfc.c b/btif/src/btif_sock_rfc.c
index 50ed08d64..1cd25a390 100644
--- a/btif/src/btif_sock_rfc.c
+++ b/btif/src/btif_sock_rfc.c
@@ -16,7 +16,7 @@
*
******************************************************************************/
-#define LOG_TAG "btif_sock_rfcomm"
+#define LOG_TAG "bt_btif_sock_rfcomm"
#include <assert.h>
#include <errno.h>
diff --git a/btif/src/btif_sock_sco.c b/btif/src/btif_sock_sco.c
index 26d37dcd8..2c6be49d3 100644
--- a/btif/src/btif_sock_sco.c
+++ b/btif/src/btif_sock_sco.c
@@ -16,7 +16,7 @@
*
******************************************************************************/
-#define LOG_TAG "btif_sock_sco"
+#define LOG_TAG "bt_btif_sock_sco"
#include <assert.h>
#include <hardware/bluetooth.h>
diff --git a/btif/src/btif_sock_sdp.c b/btif/src/btif_sock_sdp.c
index f929c1f79..1fcae8f4f 100644
--- a/btif/src/btif_sock_sdp.c
+++ b/btif/src/btif_sock_sdp.c
@@ -16,7 +16,7 @@
*
******************************************************************************/
-#define LOG_TAG "BTIF_SOCK_SDP"
+#define LOG_TAG "bt_btif_sock_sdp"
#include <stdint.h>
#include <stdbool.h>
diff --git a/btif/src/btif_sock_thread.c b/btif/src/btif_sock_thread.c
index b83f83dd7..7e4e83910 100644
--- a/btif/src/btif_sock_thread.c
+++ b/btif/src/btif_sock_thread.c
@@ -48,7 +48,7 @@
#include <cutils/sockets.h>
#include <alloca.h>
-#define LOG_TAG "BTIF_SOCK"
+#define LOG_TAG "bt_btif_sock"
#include "btif_common.h"
#include "btif_util.h"
diff --git a/btif/src/btif_sock_util.c b/btif/src/btif_sock_util.c
index 973837186..ee49eeba5 100644
--- a/btif/src/btif_sock_util.c
+++ b/btif/src/btif_sock_util.c
@@ -45,7 +45,7 @@
#include <netinet/tcp.h>
-#define LOG_TAG "BTIF_SOCK"
+#define LOG_TAG "bt_btif_sock"
#include "btif_common.h"
#include "btif_util.h"
diff --git a/btif/src/btif_storage.c b/btif/src/btif_storage.c
index 69018e198..c8e526414 100644
--- a/btif/src/btif_storage.c
+++ b/btif/src/btif_storage.c
@@ -36,7 +36,7 @@
#include <hardware/bluetooth.h>
#include "btif_config.h"
-#define LOG_TAG "BTIF_STORAGE"
+#define LOG_TAG "bt_btif_storage"
#include "btif_api.h"
#include "btif_storage.h"
@@ -606,7 +606,7 @@ bt_status_t btif_storage_get_adapter_property(bt_property_t *property)
uint32_t i;
tBTA_SERVICE_MASK service_mask = btif_get_enabled_services_mask();
- BTIF_TRACE_ERROR("%s service_mask:0x%x", __FUNCTION__, service_mask);
+ LOG_INFO("%s service_mask:0x%x", __FUNCTION__, service_mask);
for (i=0; i < BTA_MAX_SERVICE_ID; i++)
{
/* This should eventually become a function when more services are enabled */
diff --git a/btif/src/btif_util.c b/btif/src/btif_util.c
index 2abfb130f..42576eb86 100644
--- a/btif/src/btif_util.c
+++ b/btif/src/btif_util.c
@@ -36,7 +36,7 @@
#include <ctype.h>
-#define LOG_TAG "BTIF_UTIL"
+#define LOG_TAG "bt_btif_util"
#include "btif_common.h"
#include "bta_api.h"
#include "gki.h"