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

Commit 44fdb921 authored by Chris Manton's avatar Chris Manton
Browse files

Re-log bta/ag/bta_ag_sco::bta_ag_sco_event

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I47a60377dd59377e757ccc8e675c477649f8bed0
parent def8fd3c
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -602,21 +602,11 @@ void bta_ag_codec_negotiate(tBTA_AG_SCB* p_scb) {
  }
}

/*******************************************************************************
 *
 * Function         bta_ag_sco_event
 *
 * Description
 *
 *
 * Returns          void
 *
 ******************************************************************************/
static void bta_ag_sco_event(tBTA_AG_SCB* p_scb, uint8_t event) {
  tBTA_AG_SCO_CB* p_sco = &bta_ag_cb.sco;
  uint8_t previous_state = p_sco->state;
  LOG_INFO("index=0x%04x, device=%s, state=%s[%d], event=%s[%d]",
           p_scb->sco_idx, p_scb->peer_addr.ToString().c_str(),
  LOG_INFO("device:%s index:0x%04x state:%s[%d] event:%s[%d]",
           PRIVATE_ADDRESS(p_scb->peer_addr), p_scb->sco_idx,
           bta_ag_sco_state_str(p_sco->state), p_sco->state,
           bta_ag_sco_evt_str(event), event);