From: YoungJun Cho Date: Thu, 20 Jul 2017 00:51:58 +0000 (+0900) Subject: Imporve tbm_bufmgr_debug_tbm_info_get() to show gem name X-Git-Tag: accepted/tizen/3.0/common/20170724.045425~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36b7e549591505ccda01139011b35bd0da608ce0;hp=2043e9d8a9f9cb92c2dd5acee37c3395032cd71d;p=platform%2Fcore%2Fuifw%2Flibtbm.git Imporve tbm_bufmgr_debug_tbm_info_get() to show gem name This patch improves tbm_bufmgr_debug_tbm_info_get() to show gem name. Change-Id: Ib7b17c134c6be8516e5815b7c07a76e86b79e94a Signed-off-by: YoungJun Cho --- diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index 105cff3..130f29c 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1588,7 +1588,7 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) TBM_SNPRINTF(str, len, "\n"); TBM_SNPRINTF(str, len, "[tbm_bo information]\n"); - TBM_SNPRINTF(str, len, "no bo refcnt size lock_cnt map_cnt flags surface\n"); + TBM_SNPRINTF(str, len, "no bo refcnt size lock_cnt map_cnt flags surface name\n"); /* show the tbm_bo information in bo_list */ if (!LIST_IS_EMPTY(&bufmgr->bo_list)) { @@ -1596,7 +1596,7 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) tbm_bo bo = NULL; LIST_FOR_EACH_ENTRY(bo, &bufmgr->bo_list, item_link) { - TBM_SNPRINTF(str, len, "%-4d%-11p %-4d %-6d %-5d %-4u %-3d %-11p\n", + TBM_SNPRINTF(str, len, "%-4d%-11p %-4d %-6d %-5d %-4u %-3d %-11p %-4d\n", ++bo_cnt, bo, bo->ref_cnt, @@ -1604,7 +1604,8 @@ tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, char *str, int *len) bo->lock_cnt, bo->map_cnt, bo->flags, - bo->surface); + bo->surface, + tbm_bo_export(bo)); } } else TBM_SNPRINTF(str, len, "no tbm_bos.\n");