Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e819ed65 authored by Chris Manton's avatar Chris Manton
Browse files

Re-log btif_get____type

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Change-Id: Ie3d53b527b0938dc76763d5106afe5deb02601cc
parent acb3507d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -136,8 +136,7 @@ bool btif_get_device_type(const RawAddress& bda, int* p_device_type) {

  if (!btif_config_get_int(bd_addr_str, "DevType", p_device_type)) return false;

  LOG_DEBUG("%s: Device [%s] device type %d", __func__, bd_addr_str,
            *p_device_type);
  LOG_DEBUG("Device [%s] device type %d", bd_addr_str, *p_device_type);
  return true;
}

@@ -151,8 +150,7 @@ bool btif_get_address_type(const RawAddress& bda, tBLE_ADDR_TYPE* p_addr_type) {
  if (!btif_config_get_int(bd_addr_str, "AddrType", &val)) return false;
  *p_addr_type = static_cast<tBLE_ADDR_TYPE>(val);

  LOG_DEBUG("%s: Device [%s] address type %d", __func__, bd_addr_str,
            *p_addr_type);
  LOG_DEBUG("Device [%s] address type %d", bd_addr_str, *p_addr_type);
  return true;
}