From e65dd8285d4c103e403ac597bf1dd67c2d60bd5a Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Wed, 10 Feb 2021 10:06:32 -0800 Subject: Re-log stack/gap/gap_ble::client_connect_cback Towards loggable code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I96161fef848f45b28883bce6df9467f14e9fec64 --- system/stack/gap/gap_ble.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system/stack') 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 #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; } -- cgit v1.2.3-59-g8ed1b