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

Commit 9ef9f83e authored by Chris Manton's avatar Chris Manton
Browse files

Re-log stack/btm/btm_sco::btm_sco_disc_chk_pend_for_modechange

Towards loggable code

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

Change-Id: I7ad0d2e091ae5e89718f9a5fddb74c2025afd909
parent bd57db6e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -541,8 +541,10 @@ void btm_sco_chk_pend_rolechange(uint16_t hci_handle) {
void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle) {
  tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0];

  BTM_TRACE_DEBUG("%s: hci_handle 0x%04x, p->state 0x%02x", __func__,
                  hci_handle, p->state);
  LOG_DEBUG(
      "Checking for SCO pending mode change events hci_handle:0x%04x "
      "p->state:%s",
      hci_handle, sco_state_text(p->state).c_str());

  for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) {
    if ((p->state == SCO_ST_PEND_MODECHANGE) &&
@@ -550,7 +552,7 @@ void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle) {
            hci_handle)

    {
      BTM_TRACE_DEBUG("%s: SCO Link handle 0x%04x", __func__, p->hci_handle);
      LOG_DEBUG("Removing SCO Link handle 0x%04x", p->hci_handle);
      BTM_RemoveSco(xx);
    }
  }