summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_hh.c
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2014-12-23 23:08:58 -0800
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:40 -0700
commit44802768c447ab480d4227b3a852a97d923b816d (patch)
tree52f2bdda1fa934f89af3b2161a26cb47170f8567 /btif/src/btif_hh.c
parent3b24dfb998e76b389b9c850f53e0c8016383f2b8 (diff)
downloadandroid_system_bt-44802768c447ab480d4227b3a852a97d923b816d.tar.gz
android_system_bt-44802768c447ab480d4227b3a852a97d923b816d.tar.bz2
android_system_bt-44802768c447ab480d4227b3a852a97d923b816d.zip
Add platform-independent logging macros to OSI.
These macros should replace ALOG* and the various trace macros used throughout bluedroid. This change eliminates all uses of the ALOG* macros in favor of the new ones.
Diffstat (limited to 'btif/src/btif_hh.c')
-rw-r--r--btif/src/btif_hh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/btif/src/btif_hh.c b/btif/src/btif_hh.c
index 7f7562136..99ce37331 100644
--- a/btif/src/btif_hh.c
+++ b/btif/src/btif_hh.c
@@ -42,7 +42,7 @@
#include "btif_hh.h"
#include "gki.h"
#include "l2c_api.h"
-
+#include "osi/include/log.h"
#define BTIF_HH_APP_ID_MI 0x01
#define BTIF_HH_APP_ID_KB 0x02
@@ -502,7 +502,7 @@ void btif_hh_remove_device(bt_bdaddr_t bd_addr)
btif_hh_device_t *p_dev;
btif_hh_added_device_t *p_added_dev;
- ALOGI("%s: bda = %02x:%02x:%02x:%02x:%02x:%02x", __FUNCTION__,
+ LOG_INFO("%s: bda = %02x:%02x:%02x:%02x:%02x:%02x", __FUNCTION__,
bd_addr.address[0], bd_addr.address[1], bd_addr.address[2], bd_addr.address[3], bd_addr.address[4], bd_addr.address[5]);
for (i = 0; i < BTIF_HH_MAX_ADDED_DEV; i++) {
@@ -926,7 +926,7 @@ static void btif_hh_upstreams_evt(UINT16 event, char* p_param)
return;
}
if (p_dev->fd < 0) {
- ALOGE("BTA_HH_GET_DSCP_EVT: Error, failed to find the uhid driver...");
+ LOG_ERROR("BTA_HH_GET_DSCP_EVT: Error, failed to find the uhid driver...");
return;
}
{
@@ -1068,7 +1068,7 @@ static void btif_hh_upstreams_evt(UINT16 event, char* p_param)
break;
case BTA_HH_API_ERR_EVT :
- ALOGI("BTA_HH API_ERR");
+ LOG_INFO("BTA_HH API_ERR");
break;
@@ -1361,7 +1361,7 @@ static bt_status_t set_info (bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info )
dscp_info.descriptor.dsc_list = (UINT8 *) GKI_getbuf(dscp_info.descriptor.dl_len);
if (dscp_info.descriptor.dsc_list == NULL)
{
- ALOGE("%s: Failed to allocate DSCP for CB", __FUNCTION__);
+ LOG_ERROR("%s: Failed to allocate DSCP for CB", __FUNCTION__);
return BT_STATUS_FAIL;
}
memcpy(dscp_info.descriptor.dsc_list, &(hid_info.dsc_list), hid_info.dl_len);
@@ -1555,7 +1555,7 @@ static bt_status_t set_report (bt_bdaddr_t *bd_addr, bthh_report_type_t reportTy
memset(hexbuf, 0, len);
//TODO
hex_bytes_filled = ascii_2_hex(report, len, hexbuf);
- BTIF_TRACE_DEBUG("Hex bytes filled, hex value: %d", hex_bytes_filled);
+ LOG_INFO("Hex bytes filled, hex value: %d", hex_bytes_filled);
if (hex_bytes_filled) {
BT_HDR* p_buf = create_pbuf(hex_bytes_filled, hexbuf);
if (p_buf == NULL) {