From: Chris Manton Date: Thu, 24 Sep 2020 00:57:21 +0000 (-0700) Subject: Re-log bta/gatt/bta_gattc_act X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b6bafc3e1ddaf4b889532505fcd5da421f13fc97;p=android-x86%2Fsystem-bt.git Re-log bta/gatt/bta_gattc_act Towards loggable code Bug: 163134718 Tag: #refactor Test: act.py -tc BleCocTest Test: ble paired 2 phones Test: classic paired Bose SoundLink Change-Id: I3aba0bb2adddfabe86960991d9fa5d466008545e --- diff --git a/bta/gatt/bta_gattc_act.cc b/bta/gatt/bta_gattc_act.cc index 6cb670fd2..a10b5f50b 100644 --- a/bta/gatt/bta_gattc_act.cc +++ b/bta/gatt/bta_gattc_act.cc @@ -1025,12 +1025,12 @@ static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) { if (connected) { - LOG_INFO("Connected transport:%s reason:%s", + LOG_INFO("Connected att_id:%hhu transport:%s reason:%s", gattc_if, BtTransportText(transport).c_str(), hci_error_code_text(reason).c_str()); btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); } else { - LOG_INFO("Disconnected transport:%s reason:%s", + LOG_INFO("Disconnected att_id:%hhu transport:%s reason:%s", gattc_if, BtTransportText(transport).c_str(), hci_error_code_text(reason).c_str()); btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason);