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

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

Re-log stack/btm/btm_sco.::btm_sco_removed

Towards loggable code

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

Change-Id: I41c61bab20c2b5fdd544dcb66fd6d0e8dab68813
parent 53317402
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -789,8 +789,8 @@ void BTM_RemoveSco(const RawAddress& bda) {
 *
 * Function         btm_sco_removed
 *
 * Description      This function is called by BTIF when an SCO connection
 *                  is removed.
 * Description      This function is called by lower layers when an
 *                  disconnect is received.
 *
 * Returns          true if the link is known about, else false
 *
@@ -811,7 +811,8 @@ bool btm_sco_removed(uint16_t hci_handle, uint8_t reason) {
      p->esco.p_esco_cback = NULL; /* Deregister eSCO callback */
      btm_cb.sco_cb.sco_disc_reason = reason;
      (*p->p_disc_cb)(xx);

      LOG_DEBUG("Disconnected SCO link handle:%hu reason:%s", hci_handle,
                hci_error_code_text(reason).c_str());
      return true;
    }
  }