Change-Id: I89e63e372ea77d12c77eae2cbf555421adc2ed9d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-#ifdef HAVE_DLOG
-int bDlog;
-#endif
-
tbm_bufmgr gBufMgr;
int b_dump_queue;
tbm_bufmgr gBufMgr;
int b_dump_queue;
gettimeofday(&start_tv, NULL);
#endif
gettimeofday(&start_tv, NULL);
#endif
/* LCOV_EXCL_START */
#ifdef TRACE
env = getenv("TBM_TRACE");
/* LCOV_EXCL_START */
#ifdef TRACE
env = getenv("TBM_TRACE");
#include <errno.h>
#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
#include <tbm_bufmgr.h>
#include <tbm_bo.h>
#include <tbm_surface.h>
#include <tbm_bufmgr.h>
#include <tbm_bo.h>
#include <tbm_surface.h>
#include "tbm_bufmgr_int.h"
#include "tbm_log.h"
#include "tbm_bufmgr_int.h"
#include "tbm_log.h"
#define TBM_PATH_LEN 1024
#define TBM_PATH_LEN 1024
#define LOG_TAG "TBM"
#if ENABLE_DLOG
#define LOG_TAG "TBM"
#if ENABLE_DLOG
static unsigned int dlog_enable = 1;
#else
static unsigned int dlog_enable = 1;
#else
static unsigned int dlog_enable = 0;
#endif
static unsigned int color_enable = 1;
static unsigned int dlog_enable = 0;
#endif
static unsigned int color_enable = 1;
static void
_tbm_log_dlog_print(int level, const char *fmt, va_list arg)
{
static void
_tbm_log_dlog_print(int level, const char *fmt, va_list arg)
{
}
__dlog_vprint(LOG_ID_SYSTEM, dlog_prio, LOG_TAG, fmt, arg);
}
}
__dlog_vprint(LOG_ID_SYSTEM, dlog_prio, LOG_TAG, fmt, arg);
}
void
tbm_log_print(int level, const char *fmt, ...)
void
tbm_log_print(int level, const char *fmt, ...)
if (level > tbm_log_debug_level)
return;
if (level > tbm_log_debug_level)
return;
if (dlog_enable) {
va_start(arg, fmt);
_tbm_log_dlog_print(level, fmt, arg);
va_end(arg);
if (dlog_enable) {
va_start(arg, fmt);
_tbm_log_dlog_print(level, fmt, arg);
va_end(arg);
va_start(arg, fmt);
_tbm_log_vprint_stdout(level, fmt, arg);
va_end(arg);
va_start(arg, fmt);
_tbm_log_vprint_stdout(level, fmt, arg);
va_end(arg);