From eb53c75bec203ca9e9f9a5ec4741c225eb548766 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 25 Oct 2013 16:28:46 +0300 Subject: [PATCH] android/hal: Use debug helpers from hal client Debug helpers really helps a lot when debugging on Android target. The patch uses helper functions already defined for hal test tool so we do not need to reimplement them. --- android/Android.mk | 1 + android/hal-bluetooth.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/Android.mk b/android/Android.mk index 946e9cdcf..56c43cb4e 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -73,6 +73,7 @@ LOCAL_SRC_FILES := \ hal-hidhost.c \ hal-pan.c \ hal-av.c \ + client/textconv.c \ LOCAL_C_INCLUDES += \ $(call include-path-for, system-core) \ diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 282a680e3..5929fff8c 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -25,6 +25,8 @@ #include "hal-msg.h" #include "hal-ipc.h" +#include "client/textconv.h" + static const bt_callbacks_t *bt_hal_cbacks = NULL; static void handle_adapter_state_changed(void *buf) @@ -192,7 +194,7 @@ static int get_adapter_property(bt_property_type_t type) { struct hal_cmd_get_adapter_prop cmd; - DBG(""); + DBG("prop: %s", bt_property_type_t2str(type)); if (!interface_ready()) return BT_STATUS_NOT_READY; @@ -224,7 +226,7 @@ static int set_adapter_property(const bt_property_t *property) char buf[sizeof(struct hal_cmd_set_adapter_prop) + property->len]; struct hal_cmd_set_adapter_prop *cmd = (void *) buf; - DBG(""); + DBG("prop: %s", bt_property_type_t2str(property->type)); if (!interface_ready()) return BT_STATUS_NOT_READY; -- 2.47.3