diff options
author | Scott Lobdell <slobdell@google.com> | 2022-06-13 17:31:27 +0000 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2022-06-13 17:36:26 +0000 |
commit | 96230268500ca72fd4d4c4cb15c54dbfd268ac89 (patch) | |
tree | ed9f7baeca3035a0e01d0de1b97ee361fbb1cb09 /system/stack/btm/btm_ble.cc | |
parent | 5ccf9c5f1a35b5f4ee2ea952df82dfe6706e043c (diff) | |
parent | 197e748fe27845baab411394ac5aaaae5337663a (diff) |
Merge TP1A.220609.001
Change-Id: I6c3c168fb196a53feb1d2688b74bea4fdbc5b3e8
Diffstat (limited to 'system/stack/btm/btm_ble.cc')
-rw-r--r-- | system/stack/btm/btm_ble.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/stack/btm/btm_ble.cc b/system/stack/btm/btm_ble.cc index 55d7097587..9d313b3ea8 100644 --- a/system/stack/btm/btm_ble.cc +++ b/system/stack/btm/btm_ble.cc @@ -65,7 +65,7 @@ void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type, return bluetooth::shim::BTM_SecAddBleDevice(bd_addr, dev_type, addr_type); } - BTM_TRACE_DEBUG("%s: dev_type=0x%x", __func__, dev_type); + LOG_DEBUG("dev_type=0x%x", dev_type); tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); if (!p_dev_rec) { @@ -81,27 +81,27 @@ void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type, p_dev_rec->conn_params.supervision_tout = BTM_BLE_CONN_PARAM_UNDEF; p_dev_rec->conn_params.peripheral_latency = BTM_BLE_CONN_PARAM_UNDEF; - BTM_TRACE_DEBUG("%s: Device added, handle=0x%x, p_dev_rec=%p, bd_addr=%s", - __func__, p_dev_rec->ble_hci_handle, p_dev_rec, - bd_addr.ToString().c_str()); + LOG_DEBUG("Device added, handle=0x%x, p_dev_rec=%p, bd_addr=%s", + p_dev_rec->ble_hci_handle, p_dev_rec, bd_addr.ToString().c_str()); } memset(p_dev_rec->sec_bd_name, 0, sizeof(tBTM_BD_NAME)); p_dev_rec->device_type |= dev_type; - if (is_ble_addr_type_known(addr_type)) + if (is_ble_addr_type_known(addr_type)) { p_dev_rec->ble.SetAddressType(addr_type); - else + } else { LOG_WARN( "Please do not update device record from anonymous le advertisement"); + } /* sync up with the Inq Data base*/ tBTM_INQ_INFO* p_info = BTM_InqDbRead(bd_addr); if (p_info) { p_info->results.ble_addr_type = p_dev_rec->ble.AddressType(); p_info->results.device_type = p_dev_rec->device_type; - BTM_TRACE_DEBUG("InqDb device_type =0x%x addr_type=0x%x", - p_info->results.device_type, p_info->results.ble_addr_type); + LOG_DEBUG("InqDb device_type =0x%x addr_type=0x%x", + p_info->results.device_type, p_info->results.ble_addr_type); } } |