summaryrefslogtreecommitdiff
path: root/system/stack/gap
diff options
context:
space:
mode:
author Chris Manton <cmanton@google.com> 2021-02-10 10:06:32 -0800
committer Chris Manton <cmanton@google.com> 2021-02-16 08:27:19 -0800
commite65dd8285d4c103e403ac597bf1dd67c2d60bd5a (patch)
tree8b1fd6d2e5b4b73451f5c7d8ab5db35bad59140b /system/stack/gap
parent0a3bb3c4e201c54796dcce4539a5fa5b4290fafc (diff)
Re-log stack/gap/gap_ble::client_connect_cback
Towards loggable code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I96161fef848f45b28883bce6df9467f14e9fec64
Diffstat (limited to 'system/stack/gap')
-rw-r--r--system/stack/gap/gap_ble.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/stack/gap/gap_ble.cc b/system/stack/gap/gap_ble.cc
index bd11357806..e0654886d6 100644
--- a/system/stack/gap/gap_ble.cc
+++ b/system/stack/gap/gap_ble.cc
@@ -24,6 +24,7 @@
#include <queue>
#include "gap_api.h"
#include "gatt_api.h"
+#include "main/shim/dumpsys.h"
#include "osi/include/log.h"
#include "types/bt_transport.h"
@@ -293,7 +294,8 @@ void client_connect_cback(tGATT_IF, const RawAddress& bda, uint16_t conn_id,
tBT_TRANSPORT) {
tGAP_CLCB* p_clcb = find_clcb_by_bd_addr(bda);
if (p_clcb == NULL) {
- LOG_WARN("Unable to find device after connection");
+ LOG_INFO("No active GAP service found for peer:%s callback:%s",
+ PRIVATE_ADDRESS(bda), (connected) ? "Connected" : "Disconnected");
return;
}