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

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

Re-log bta/ag/bta_ag_sco::bta_ag_remove_sco

Towards loggable code

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

Change-Id: I40243c0f58e142f6eddbcd85810446d0b3a70f5c
parent d8226c04
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -246,8 +246,8 @@ static bool bta_ag_remove_sco(tBTA_AG_SCB* p_scb, bool only_active) {
  if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) {
    if (!only_active || p_scb->sco_idx == bta_ag_cb.sco.cur_idx) {
      tBTM_STATUS status = BTM_RemoveSco(p_scb->sco_idx);
      APPL_TRACE_DEBUG("%s: SCO index 0x%04x, status %d", __func__,
                       p_scb->sco_idx, status);
      LOG_DEBUG("Removed SCO index:0x%04x status:%s", p_scb->sco_idx,
                btm_status_text(status).c_str());
      if (status == BTM_CMD_STARTED) {
        /* SCO is connected; set current control block */
        bta_ag_cb.sco.p_curr_scb = p_scb;