From fa5e2c3cca42898bdf5f1e0753e95870a437763d Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 23 Mar 2018 13:39:32 +0900 Subject: [PATCH] log: enhance debugging logs Change-Id: I6fcf7705e60652ecd6987737aed4686de9569d65 --- common/tdm_log.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/tdm_log.c b/common/tdm_log.c index 4d4d500..94aebc3 100644 --- a/common/tdm_log.c +++ b/common/tdm_log.c @@ -75,6 +75,7 @@ EXTERN void tdm_log_enable_color(unsigned int enable) { color_enable = enable; + TDM_INFO("color_enable: %d", color_enable); } EXTERN void @@ -84,6 +85,7 @@ tdm_log_enable_dlog(unsigned int enable) if (str) enable = (str[0] == '1') ? 1 : 0; dlog_enable = enable; + TDM_INFO("dlog_enable: %d", dlog_enable); } EXTERN void @@ -93,6 +95,7 @@ tdm_log_set_debug_level(int level) if (str) level = str[0] - '0'; tdm_log_debug_level = level; + TDM_INFO("debug_level: %d", tdm_log_debug_level); } EXTERN void @@ -102,11 +105,14 @@ tdm_log_set_assert_level(int level) if (str) level = str[0] - '0'; assert_level = level; + TDM_INFO("assert_level: %d", assert_level); } EXTERN void tdm_log_set_path(const char *path) { + TDM_INFO("log_path: %s", path); + if (!path) { if (stdout_fd != -1) { fflush(stdout); @@ -144,6 +150,7 @@ tdm_log_set_path(const char *path) close(STDOUT_FILENO); dup2(log_fd, STDOUT_FILENO); fclose(log_fl); + TDM_INFO("log_path: %s done", path); } } -- 2.7.4