don't check path condition if queue_dump off 37/112537/1 accepted/tizen/3.0/common/20170202.151034 accepted/tizen/3.0/ivi/20170202.010931 accepted/tizen/3.0/mobile/20170202.010717 accepted/tizen/3.0/tv/20170202.010814 accepted/tizen/3.0/wearable/20170202.010904 accepted/tizen/common/20170201.172153 accepted/tizen/ivi/20170202.015726 accepted/tizen/mobile/20170202.015628 accepted/tizen/tv/20170202.015650 accepted/tizen/wearable/20170202.015706 submit/tizen/20170201.112445 submit/tizen_3.0/20170201.112518
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 1 Feb 2017 09:29:11 +0000 (18:29 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 1 Feb 2017 09:29:16 +0000 (18:29 +0900)
Change-Id: I425c8376c503285d89b6f113d2808b77648d0095
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tbm_bufmgr.c

index 65c2906..8dd0c30 100644 (file)
@@ -1580,17 +1580,18 @@ tbm_bufmgr_debug_trace(tbm_bufmgr bufmgr, int onoff)
 int
 tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff)
 {
-       TBM_RETURN_VAL_IF_FAIL(path != NULL, 0);
-       TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff);
-
        pthread_mutex_lock(&gLock);
 
        if (onoff == 0) {
+               TBM_LOG_D("count=%d onoff=%d\n", count, onoff);
                b_dump_queue = 0;
                tbm_surface_internal_dump_end();
        } else {
                int w, h;
 
+               TBM_RETURN_VAL_IF_FAIL(path != NULL, 0);
+               TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff);
+
                if (_tbm_util_get_max_surface_size(&w, &h) == 0) {
                        TBM_LOG_I("Fail to get tbm_surface size.\n");
                        pthread_mutex_unlock(&gLock);