diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c
index 7436864..8c47e27 100644
--- a/android/hal-hidhost.c
+++ b/android/hal-hidhost.c
#include <hardware/bluetooth.h>
#include <hardware/bt_hh.h>
-#define LOG_TAG "BlueZ"
-#include <cutils/log.h>
-
+#include "hal-log.h"
#include "hal.h"
bthh_callbacks_t *bt_hh_cbacks;
static bt_status_t bt_hidhost_connect(bt_bdaddr_t *bd_addr)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_disconnect(bt_bdaddr_t *bd_addr)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_virtual_unplug(bt_bdaddr_t *bd_addr)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_set_info(bt_bdaddr_t *bd_addr,
bthh_hid_info_t hid_info)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_get_protocol(bt_bdaddr_t *bd_addr,
bthh_protocol_mode_t protocolMode)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_set_protocol(bt_bdaddr_t *bd_addr,
bthh_protocol_mode_t protocolMode)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
uint8_t reportId,
int bufferSize)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
bthh_report_type_t reportType,
char *report)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_send_data(bt_bdaddr_t *bd_addr, char *data)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
static bt_status_t bt_hidhost_init(bthh_callbacks_t *callbacks)
{
- ALOGI(__func__);
+ DBG("");
/* store reference to user callbacks */
bt_hh_cbacks = callbacks;
static void bt_hidhost_cleanup(void)
{
- ALOGD(__func__);
+ DBG("");
if (!interface_ready())
return;