summaryrefslogtreecommitdiffstats
path: root/audio_a2dp_hw
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 /audio_a2dp_hw
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 'audio_a2dp_hw')
-rw-r--r--audio_a2dp_hw/Android.mk1
-rw-r--r--audio_a2dp_hw/audio_a2dp_hw.c11
2 files changed, 6 insertions, 6 deletions
diff --git a/audio_a2dp_hw/Android.mk b/audio_a2dp_hw/Android.mk
index 86dd5a716..62a050588 100644
--- a/audio_a2dp_hw/Android.mk
+++ b/audio_a2dp_hw/Android.mk
@@ -7,6 +7,7 @@ LOCAL_SRC_FILES := \
LOCAL_C_INCLUDES += \
. \
+ $(LOCAL_PATH)/../ \
$(LOCAL_PATH)/../utils/include
LOCAL_CFLAGS += -std=c99 $(bdroid_CFLAGS)
diff --git a/audio_a2dp_hw/audio_a2dp_hw.c b/audio_a2dp_hw/audio_a2dp_hw.c
index 88ac8d6ec..632b1da02 100644
--- a/audio_a2dp_hw/audio_a2dp_hw.c
+++ b/audio_a2dp_hw/audio_a2dp_hw.c
@@ -47,8 +47,7 @@
#include "bt_utils.h"
#define LOG_TAG "audio_a2dp_hw"
-/* #define LOG_NDEBUG 0 */
-#include <log/log.h>
+#include "osi/include/log.h"
/*****************************************************************************
** Constants & Macros
@@ -59,10 +58,10 @@
#define CASE_RETURN_STR(const) case const: return #const;
-#define FNLOG() ALOGV("%s", __FUNCTION__);
-#define DEBUG(fmt, ...) ALOGV("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
-#define INFO(fmt, ...) ALOGI("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
-#define ERROR(fmt, ...) ALOGE("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
+#define FNLOG() LOG_VERBOSE("%s", __FUNCTION__);
+#define DEBUG(fmt, ...) LOG_VERBOSE("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
+#define INFO(fmt, ...) LOG_INFO("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
+#define ERROR(fmt, ...) LOG_ERROR("%s: " fmt,__FUNCTION__, ## __VA_ARGS__)
#define ASSERTC(cond, msg, val) if (!(cond)) {ERROR("### ASSERT : %s line %d %s (%d) ###", __FILE__, __LINE__, msg, val);}