checking it in tdm_log_print is excuted in every log.
Change-Id: I6cc4c132c8cf8188f0bdf702560f3e8e51a5050c
#undef LOG_TAG
#define LOG_TAG "TDM"
-static unsigned int dlog_enable = 1;
+static unsigned int dlog_enable = 0;
static unsigned int color_enable = 1;
static unsigned int assert_level = TDM_LOG_LEVEL_NONE;
EXTERN void
tdm_log_enable_dlog(unsigned int enable)
{
+ const char *debug = getenv("TDM_DLOG");
+ if (debug && strstr(debug, "1"))
+ enable = 1;
+
dlog_enable = enable;
}
if (level > tdm_log_debug_level)
return;
- if (getenv("TDM_DEBUG"))
- dlog_enable = 0;
-
if (dlog_enable) {
log_priority dlog_prio;
switch (level) {