tbm_module: make tbm_module_bufmgr_bind_native_display
[platform/core/uifw/libtbm.git] / src / tbm_log.c
index e4fcd22..3fea718 100644 (file)
@@ -35,6 +35,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #include "tbm_bufmgr_int.h"
 #include "tbm_log.h"
+#include <dlog.h>
 
 #define TBM_PATH_LEN        1024
 
@@ -67,22 +68,10 @@ tbm_log_enable_color(unsigned int enable)
 void
 tbm_log_enable_dlog(unsigned int enable)
 {
-       const char *str = getenv("TBM_DLOG");
-       if (str)
-               enable = (str[0] == '1') ? 1 : 0;
        dlog_enable = enable;
 }
 
 void
-tbm_log_enable_debug(unsigned int enable)
-{
-       if (enable)
-               tbm_log_debug_level = TBM_LOG_LEVEL_DBG;
-       else
-               tbm_log_debug_level = TBM_LOG_LEVEL_INFO;
-}
-
-void
 tbm_log_set_debug_level(int level)
 {
        tbm_log_debug_level = level;
@@ -222,9 +211,3 @@ tbm_log_print(int level, const char *fmt, ...)
        assert(level > assert_level);
 }
 
-void
-tbm_log_reset(void)
-{
-       pthread_mutex_trylock(&log_lock);
-       pthread_mutex_unlock(&log_lock);
-}