* 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
EXTERN void
tdm_log_enable_dlog(unsigned int enable)
{
- const char *str = getenv("TDM_DLOG");
- if (str)
- enable = (str[0] == '1') ? 1 : 0;
dlog_enable = enable;
TDM_INFO("dlog_enable: %d", dlog_enable);
}
EXTERN void
tdm_log_set_debug_level(int level)
{
- const char *str = getenv("TDM_DEBUG_LEVEL");
- if (str)
- level = str[0] - '0';
tdm_log_debug_level = level;
TDM_INFO("debug_level: %d", tdm_log_debug_level);
}
EXTERN void
tdm_log_set_assert_level(int level)
{
- const char *str = getenv("TDM_ASSERT_LEVEL");
- if (str)
- level = str[0] - '0';
assert_level = level;
TDM_INFO("assert_level: %d", assert_level);
}
EXTERN void
-tdm_log_print_stdout(int level, const char *fmt, ...)
+tdm_log_printf(int level, const char *fmt, ...)
{
va_list arg;
va_start(arg, fmt);