From d260d3d03c4ceec350e26809e653da03a11c2b2e Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Wed, 12 Oct 2016 22:33:29 +0900 Subject: [PATCH] use dlog to default log Change-Id: Icb79480ee3546a81fc16c6fe45534943489c8003 --- src/wayland-tbm-server.c | 10 +++++----- src/wayland-tbm-util.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wayland-tbm-server.c b/src/wayland-tbm-server.c index 11b917e..124a9a2 100644 --- a/src/wayland-tbm-server.c +++ b/src/wayland-tbm-server.c @@ -720,11 +720,11 @@ _wayland_tbm_server_destroy_resource(struct wl_resource *wl_tbm) { struct wayland_tbm_server *tbm_srv = NULL; - { - pid_t pid; - wl_client_get_credentials(wl_resource_get_client(wl_tbm), &pid, NULL, NULL); - WL_TBM_S_LOG("wl_tbm_monitor destroy. client=%d\n", pid); - } +#ifdef DEBUG_TRACE + pid_t pid; + wl_client_get_credentials(wl_resource_get_client(wl_tbm), &pid, NULL, NULL); + WL_TBM_S_LOG("wl_tbm_monitor destroy. client=%d\n", pid); +#endif /* remove the client resources to the list */ tbm_srv = wl_resource_get_user_data(wl_tbm); diff --git a/src/wayland-tbm-util.c b/src/wayland-tbm-util.c index b1c0f52..fad6a74 100644 --- a/src/wayland-tbm-util.c +++ b/src/wayland-tbm-util.c @@ -142,7 +142,7 @@ _wayland_tbm_check_dlog_enable(void) bDlog = atoi(env); WL_TBM_LOG("WL_TBM_DLOG=%s\n", env); } else { - bDlog = 0; + bDlog = 1; } #endif return; -- 2.7.4