OSDN Git Service

Add missing log tags
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 8 Feb 2016 19:11:25 +0000 (11:11 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 18 Feb 2016 18:36:29 +0000 (10:36 -0800)
When building for Linux, missing log tags cause errors.

Change-Id: I0b3cda3333c059251b00a25bbfc7e764057286be

bta/hf_client/bta_hf_client_at.c
btif/src/btif_av.c
btif/src/btif_dm.c

index 19f440c..f983fb7 100644 (file)
@@ -149,7 +149,7 @@ static void bta_hf_client_queue_at(tBTA_HF_CLIENT_AT_CMD cmd, const char *buf, U
 static void bta_hf_client_at_resp_timer_cback(UNUSED_ATTR void *data)
 {
   if (bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) {
-    LOG_INFO("%s timed out waiting for AT+CNUM response; spoofing OK.", __func__);
+    LOG_INFO(LOG_TAG, "%s timed out waiting for AT+CNUM response; spoofing OK.", __func__);
     bta_hf_client_handle_ok();
   } else {
     APPL_TRACE_ERROR("HFPClient: AT response timeout, disconnecting");
index e6f7730..1465343 100644 (file)
@@ -16,6 +16,8 @@
  *
  ******************************************************************************/
 
+#define LOG_TAG "btif_av"
+
 #include "btif_av.h"
 
 #include <assert.h>
index c94085d..a303e13 100644 (file)
@@ -1111,7 +1111,7 @@ static void btif_dm_auth_cmpl_evt (tBTA_DM_AUTH_CMPL *p_auth_cmpl)
     if (!bdaddr_equals(p_auth_cmpl->bd_addr, pairing_cb.bd_addr)) {
       char address[32];
       bdaddr_to_string(&p_auth_cmpl->bd_addr, address, sizeof(address));
-      LOG_INFO("%s skipping SDP since we did not initiate pairing to %s.", __func__, address);
+      LOG_INFO(LOG_TAG, "%s skipping SDP since we did not initiate pairing to %s.", __func__, address);
       return;
     }