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

Commit 16b85b0e authored by Chris Manton's avatar Chris Manton
Browse files

Use proper bta/gatt/bta_gattc_act::gatt_disconnection_reason_text

Towards loggable code

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

Change-Id: I81cdee3a3ececda20bbc882c8892be945c72cb94
parent a03f2e32
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1068,12 +1068,12 @@ static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr,
  if (connected) {
    LOG_INFO("Connected att_id:%hhu transport:%s reason:%s", gattc_if,
             BtTransportText(transport).c_str(),
             hci_error_code_text(reason).c_str());
             gatt_disconnection_reason_text(reason).c_str());
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN);
  } else {
    LOG_INFO("Disconnected att_id:%hhu transport:%s reason:%s", gattc_if,
             BtTransportText(transport).c_str(),
             hci_error_code_text(reason).c_str());
             gatt_disconnection_reason_text(reason).c_str());
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, GATT_CONN_UNKNOWN);
  }