From 53c61dd02842f912b9a78da90c271bd72e846cb3 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Fri, 29 Jan 2021 14:01:13 -0800 Subject: [PATCH] Add various LOG_TAG bluetooth Towards loggable code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I7a507f06070008407e70079cd867d20a921458af --- audio_hal_interface/codec_status.cc | 2 ++ bta/hd/bta_hd_api.cc | 2 ++ bta/hh/bta_hh_act.cc | 2 ++ bta/pan/bta_pan_act.cc | 2 ++ btif/src/btif_hf_client.cc | 2 ++ stack/bnep/bnep_main.cc | 2 ++ stack/smp/smp_l2c.cc | 2 ++ 7 files changed, 14 insertions(+) diff --git a/audio_hal_interface/codec_status.cc b/audio_hal_interface/codec_status.cc index 0819e5c38..cd9d88e05 100644 --- a/audio_hal_interface/codec_status.cc +++ b/audio_hal_interface/codec_status.cc @@ -14,6 +14,8 @@ * limitations under the License. */ +#define LOG_TAG "bluetooth" + #include "codec_status.h" #include "client_interface.h" diff --git a/bta/hd/bta_hd_api.cc b/bta/hd/bta_hd_api.cc index 40963cce2..60b3634da 100644 --- a/bta/hd/bta_hd_api.cc +++ b/bta/hd/bta_hd_api.cc @@ -23,6 +23,8 @@ * ******************************************************************************/ +#define LOG_TAG "bluetooth" + #include "bt_target.h" #if defined(BTA_HD_INCLUDED) && (BTA_HD_INCLUDED == TRUE) diff --git a/bta/hh/bta_hh_act.cc b/bta/hh/bta_hh_act.cc index 8a5ea0c1a..07137eb81 100644 --- a/bta/hh/bta_hh_act.cc +++ b/bta/hh/bta_hh_act.cc @@ -22,6 +22,8 @@ * ******************************************************************************/ +#define LOG_TAG "bluetooth" + #include "bt_target.h" #if (BTA_HH_INCLUDED == TRUE) diff --git a/bta/pan/bta_pan_act.cc b/bta/pan/bta_pan_act.cc index 558431b14..7c1978edf 100644 --- a/bta/pan/bta_pan_act.cc +++ b/bta/pan/bta_pan_act.cc @@ -22,6 +22,8 @@ * ******************************************************************************/ +#define LOG_TAG "bluetooth" + #include "bt_target.h" #if (PAN_INCLUDED == TRUE) diff --git a/btif/src/btif_hf_client.cc b/btif/src/btif_hf_client.cc index eba5765a9..1c00a4dc5 100755 --- a/btif/src/btif_hf_client.cc +++ b/btif/src/btif_hf_client.cc @@ -42,7 +42,9 @@ * ******************************************************************************/ +#ifndef LOG_TAG #define LOG_TAG "bt_btif_hfc" +#endif #include diff --git a/stack/bnep/bnep_main.cc b/stack/bnep/bnep_main.cc index 1fcc2d34f..98e8f60b6 100644 --- a/stack/bnep/bnep_main.cc +++ b/stack/bnep/bnep_main.cc @@ -22,6 +22,8 @@ * ******************************************************************************/ +#define LOG_TAG "bluetooth" + #include #include "bt_target.h" diff --git a/stack/smp/smp_l2c.cc b/stack/smp/smp_l2c.cc index 23c072c15..32d633f15 100644 --- a/stack/smp/smp_l2c.cc +++ b/stack/smp/smp_l2c.cc @@ -22,6 +22,8 @@ * ******************************************************************************/ +#define LOG_TAG "bluetooth" + #include #include "bt_target.h" -- 2.11.0