projects
/
platform
/
core
/
uifw
/
libtdm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virtual: add set_available_mode & set_phsycal_size function
[platform/core/uifw/libtdm.git]
/
common
/
tdm_log.c
diff --git
a/common/tdm_log.c
b/common/tdm_log.c
index
348ea99
..
ac7666d
100644
(file)
--- a/
common/tdm_log.c
+++ b/
common/tdm_log.c
@@
-9,7
+9,7
@@
* Taeheon Kim <th908.kim@samsung.com>,
* YoungJun Cho <yj44.cho@samsung.com>,
* SooChan Lim <sc1.lim@samsung.com>,
* Taeheon Kim <th908.kim@samsung.com>,
* YoungJun Cho <yj44.cho@samsung.com>,
* SooChan Lim <sc1.lim@samsung.com>,
- * Boram Park <
sc1.lim
@samsung.com>
+ * Boram Park <
boram1288.park
@samsung.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
@@
-75,6
+75,7
@@
EXTERN void
tdm_log_enable_color(unsigned int enable)
{
color_enable = enable;
tdm_log_enable_color(unsigned int enable)
{
color_enable = enable;
+ TDM_INFO("color_enable: %d", color_enable);
}
EXTERN void
}
EXTERN void
@@
-84,6
+85,7
@@
tdm_log_enable_dlog(unsigned int enable)
if (str)
enable = (str[0] == '1') ? 1 : 0;
dlog_enable = enable;
if (str)
enable = (str[0] == '1') ? 1 : 0;
dlog_enable = enable;
+ TDM_INFO("dlog_enable: %d", dlog_enable);
}
EXTERN void
}
EXTERN void
@@
-93,6
+95,7
@@
tdm_log_set_debug_level(int level)
if (str)
level = str[0] - '0';
tdm_log_debug_level = level;
if (str)
level = str[0] - '0';
tdm_log_debug_level = level;
+ TDM_INFO("debug_level: %d", tdm_log_debug_level);
}
EXTERN void
}
EXTERN void
@@
-102,11
+105,14
@@
tdm_log_set_assert_level(int level)
if (str)
level = str[0] - '0';
assert_level = 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)
{
}
EXTERN void
tdm_log_set_path(const char *path)
{
+ TDM_INFO("log_path: %s", path);
+
if (!path) {
if (stdout_fd != -1) {
fflush(stdout);
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);
close(STDOUT_FILENO);
dup2(log_fd, STDOUT_FILENO);
fclose(log_fl);
+ TDM_INFO("log_path: %s done", path);
}
}
}
}
@@
-175,7
+182,7
@@
_tdm_log_vprint_stdout(int level, const char *fmt, va_list ap)
EXTERN void
EXTERN void
-tdm_log_print
_stdout
(int level, const char *fmt, ...)
+tdm_log_print
f
(int level, const char *fmt, ...)
{
va_list arg;
va_start(arg, fmt);
{
va_list arg;
va_start(arg, fmt);
@@
-224,6
+231,5
@@
tdm_log_print(int level, const char *fmt, ...)
EXTERN void
tdm_log_reset(void)
{
EXTERN void
tdm_log_reset(void)
{
- pthread_mutex_trylock(&log_lock);
pthread_mutex_unlock(&log_lock);
}
pthread_mutex_unlock(&log_lock);
}