log: enhance debugging logs 59/173659/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 23 Mar 2018 04:39:32 +0000 (13:39 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 23 Mar 2018 04:39:32 +0000 (13:39 +0900)
Change-Id: I6fcf7705e60652ecd6987737aed4686de9569d65

common/tdm_log.c

index 4d4d5001144fb974e4b8f56b3258e6a0d547557a..94aebc35637238b390e4636d5ce9f8e79436c142 100644 (file)
@@ -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);
        }
 }