#include "btif_profile_queue.h"
#include "btif_util.h"
#include "common/metrics.h"
+#include "main/shim/dumpsys.h"
namespace bluetooth {
namespace headset {
RawAddress* bd_addr) {
CHECK_BTHF_INIT();
if (!bd_addr) {
- BTIF_TRACE_WARNING("%s: bd_addr is null", __func__);
+ LOG_WARN("bd_addr is null");
return BT_STATUS_FAIL;
}
+ const RawAddress raw_address(*bd_addr);
int idx = btif_hf_idx_by_bdaddr(bd_addr);
if (idx < 0 || idx > BTA_AG_MAX_NUM_CLIENTS) {
- BTIF_TRACE_WARNING("%s: invalid index %d for %s", __func__, idx,
- bd_addr->ToString().c_str());
+ LOG_WARN("Invalid index %d for %s", idx, PRIVATE_ADDRESS(raw_address));
return BT_STATUS_FAIL;
}
const btif_hf_cb_t& control_block = btif_hf_cb[idx];