aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2015-03-25 13:41:52 -0500
committerGerrit Code Review2015-03-25 13:46:23 -0500
commitf8df435c9936f632c4aea63316eafa569bcbbc52 (patch)
tree033d549d7e6348c52b4cf72eb70bef3a447298b0
parent3a2e659dfe7b212bc262ca93353305c95ccf37bb (diff)
downloadrepo-libdce-f8df435c9936f632c4aea63316eafa569bcbbc52.tar.gz
repo-libdce-f8df435c9936f632c4aea63316eafa569bcbbc52.tar.xz
repo-libdce-f8df435c9936f632c4aea63316eafa569bcbbc52.zip
[TRACE] Add tag to Android logs
By default Android tag is empty, define one for libdce Change-Id: Ide10001092cc529c935f1387774f3b9afc4f1d1f Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--dce_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dce_priv.h b/dce_priv.h
index f0ac227..5e2fba1 100644
--- a/dce_priv.h
+++ b/dce_priv.h
@@ -67,6 +67,7 @@ extern int dce_debug;
67 67
68#elif defined BUILDOS_ANDROID 68#elif defined BUILDOS_ANDROID
69#include <utils/Log.h> 69#include <utils/Log.h>
70#define LOG_TAG "libdce"
70#define TRACE(lvl,FMT, ...) do if ((lvl) <= dce_debug) { \ 71#define TRACE(lvl,FMT, ...) do if ((lvl) <= dce_debug) { \
71 ALOGE("%s:%d:\t%s\t Error: "FMT,__FILE__, __LINE__,__FUNCTION__ ,##__VA_ARGS__); \ 72 ALOGE("%s:%d:\t%s\t Error: "FMT,__FILE__, __LINE__,__FUNCTION__ ,##__VA_ARGS__); \
72}while( 0 ) 73}while( 0 )