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.
diff --git a/main/stack_config.c b/main/stack_config.c
index a568c23..0175c08 100644
--- a/main/stack_config.c
+++ b/main/stack_config.c
@@ -19,10 +19,10 @@
#define LOG_TAG "bt_stack_config"
#include <assert.h>
-#include <utils/Log.h>
#include "future.h"
#include "stack_config.h"
+#include "osi/include/log.h"
const char *BTSNOOP_LOG_PATH_KEY = "BtSnoopFileName";
const char *BTSNOOP_TURNED_ON_KEY = "BtSnoopLogOutput";
@@ -36,11 +36,11 @@
const char *path = "/etc/bluetooth/bt_stack.conf";
assert(path != NULL);
- ALOGI("%s attempt to load stack conf from %s", __func__, path);
+ LOG_INFO("%s attempt to load stack conf from %s", __func__, path);
config = config_new(path);
if (!config) {
- ALOGI("%s file >%s< not found", __func__, path);
+ LOG_INFO("%s file >%s< not found", __func__, path);
return future_new_immediate(FUTURE_FAIL);
}