From: Chris Manton Date: Wed, 13 Jan 2021 01:33:30 +0000 (-0800) Subject: Use proper bta/gatt/bta_gattc_act::gatt_disconnection_reason_text X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f78063e6961199057e4fa56d8314f7a836340c86;p=android-x86%2Fsystem-bt.git 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 --- diff --git a/bta/gatt/bta_gattc_act.cc b/bta/gatt/bta_gattc_act.cc index 390fbd0bc..18cb696a0 100644 --- a/bta/gatt/bta_gattc_act.cc +++ b/bta/gatt/bta_gattc_act.cc @@ -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); }