android: Use hal-log.h for logging in pan HAL

This will allow to log both on Android and Linux (in haltest)
This commit is contained in:
Szymon Janc 2013-10-20 19:45:44 +02:00 committed by Johan Hedberg
parent 092cf57fec
commit 9422d5a072

View File

@ -21,9 +21,7 @@
#include <hardware/bluetooth.h>
#include <hardware/bt_pan.h>
#define LOG_TAG "BlueZ"
#include <cutils/log.h>
#include "hal-log.h"
#include "hal.h"
const btpan_callbacks_t *bt_pan_cbacks = NULL;
@ -35,7 +33,7 @@ static bool interface_ready(void)
static bt_status_t bt_pan_enable(int local_role)
{
ALOGD(__func__);
DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
@ -45,7 +43,7 @@ static bt_status_t bt_pan_enable(int local_role)
static int bt_pan_get_local_role(void)
{
ALOGD(__func__);
DBG("");
if (!interface_ready())
return BTPAN_ROLE_NONE;
@ -56,7 +54,7 @@ static int bt_pan_get_local_role(void)
static bt_status_t bt_pan_connect(const bt_bdaddr_t *bd_addr, int local_role,
int remote_role)
{
ALOGD(__func__);
DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
@ -69,7 +67,7 @@ static bt_status_t bt_pan_connect(const bt_bdaddr_t *bd_addr, int local_role,
static bt_status_t bt_pan_disconnect(const bt_bdaddr_t *bd_addr)
{
ALOGD(__func__);
DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
@ -82,7 +80,7 @@ static bt_status_t bt_pan_disconnect(const bt_bdaddr_t *bd_addr)
static bt_status_t bt_pan_init(const btpan_callbacks_t *callbacks)
{
ALOGI(__func__);
DBG("");
bt_pan_cbacks = callbacks;
@ -95,7 +93,7 @@ static bt_status_t bt_pan_init(const btpan_callbacks_t *callbacks)
static void bt_pan_cleanup()
{
ALOGD(__func__);
DBG("");
if (!interface_ready())
return;