OSDN Git Service

Re-log bta/gatt/bta_gattc_act
authorChris Manton <cmanton@google.com>
Thu, 24 Sep 2020 00:57:21 +0000 (17:57 -0700)
committerChris Manton <cmanton@google.com>
Fri, 9 Oct 2020 19:22:48 +0000 (19:22 +0000)
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

bta/gatt/bta_gattc_act.cc

index 6cb670f..a10b5f5 100644 (file)
@@ -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);