From b53bf0ee77107a3fec7de45adf7a0fd427b247e7 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Sat, 26 Dec 2020 15:04:26 -0800 Subject: [PATCH] Re-log btif/src/btif_av::src_connect_sink Towards loggable code Bug: 163134718 Tag: #refactor Test: gd/cert/run --host Change-Id: I2771820eb4a6cb4be372284d56b94ff6d4fdfce3 --- btif/src/btif_av.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/btif/src/btif_av.cc b/btif/src/btif_av.cc index 34eeac22e..9566fefa5 100644 --- a/btif/src/btif_av.cc +++ b/btif/src/btif_av.cc @@ -46,6 +46,7 @@ #include "btif_util.h" #include "btu.h" #include "common/state_machine.h" +#include "main/shim/dumpsys.h" #include "osi/include/allocator.h" #include "osi/include/osi.h" #include "osi/include/properties.h" @@ -2845,14 +2846,15 @@ static void set_active_peer_int(uint8_t peer_sep, } static bt_status_t src_connect_sink(const RawAddress& peer_address) { - BTIF_TRACE_EVENT("%s: Peer %s", __func__, peer_address.ToString().c_str()); - if (!btif_av_source.Enabled()) { - BTIF_TRACE_WARNING("%s: BTIF AV Source is not enabled", __func__); + LOG_WARN("BTIF AV Source is not enabled"); return BT_STATUS_NOT_READY; } RawAddress peer_address_copy(peer_address); + LOG_DEBUG("Connecting to AV sink peer:%s", + PRIVATE_ADDRESS(peer_address_copy)); + return btif_queue_connect(UUID_SERVCLASS_AUDIO_SOURCE, &peer_address_copy, connect_int); } -- 2.11.0