chang the tbm:debug log format 52/54152/1 accepted/tizen/mobile/20151213.232054 accepted/tizen/tv/20151213.232108 accepted/tizen/wearable/20151213.232130 submit/tizen/20151213.075028
authorSooChan Lim <sc1.lim@samsung.com>
Sun, 13 Dec 2015 07:21:33 +0000 (16:21 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Sun, 13 Dec 2015 07:21:33 +0000 (16:21 +0900)
Change-Id: I71bb452278285ff9f57fbb00c2f91bcfc7a358eb

src/tbm_bufmgr.c
src/tbm_bufmgr_int.h

index 5c247a4..f10020f 100755 (executable)
@@ -1712,14 +1712,14 @@ tbm_bufmgr_debug_show (tbm_bufmgr bufmgr)
 
        TBM_DEBUG("============TBM DEBUG: PID(%d)===========================\n", getpid());
 
-       TBM_DEBUG(" [tbm_bo information]\n");
+       TBM_DEBUG("[tbm_bo information]\n");
+       TBM_DEBUG("no  bo                ref_cnt tgl_key lock_cnt map_cnt cache_state flags\n");
        /* show the tbm_bo information in bo_list */
        if(!LIST_IS_EMPTY (&bufmgr->bo_list))
        {
                LIST_FOR_EACH_ENTRY_SAFE (bo, tmp_bo, &bufmgr->bo_list, item_link)
                {
-                       TBM_DEBUG("no  bo        ref_cnt tgl_key lock_cnt map_cnt cache_state flags\n");
-                       TBM_DEBUG("%-4d%-10p%-8d%-8d%-9d%-8d%-12d%-5d\n",
+                       TBM_DEBUG("%-4d%-14p%-8d%-8d%-9d%-8d%-12d%-5d\n",
                         ++bo_cnt,
                                                bo,
                                                bo->ref_cnt,
@@ -1734,15 +1734,17 @@ tbm_bufmgr_debug_show (tbm_bufmgr bufmgr)
        {
                TBM_DEBUG("no tbm_bos.\n");
        }
+       TBM_DEBUG("\n");
+
+       TBM_DEBUG("[tbm_surface information]\n");
+       TBM_DEBUG("no  surface   width height format bpp size num_bos num_planes flags\n");
 
-       TBM_DEBUG(" [tbm_surface information]\n");
        /* show the tbm_surface information in surf_list */
        if(!LIST_IS_EMPTY (&bufmgr->surf_list))
        {
                LIST_FOR_EACH_ENTRY_SAFE (surf, tmp_surf, &bufmgr->surf_list, item_link)
                {
-                       TBM_DEBUG("no  surface   width height format bpp size num_bos num_planes flags\n");
-                       TBM_DEBUG("%-4d%-10p%-6d%-7d%-7d%-4d%-5d%-8d%-8d%-11d%-5d\\n",
+                       TBM_DEBUG("%-4d%-14p%-6d%-7d%-7d%-4d%-5d%-8d%-8d%-11d%-5d\\n",
                                                ++surf_cnt,
                                                surf,
                                                surf->refcnt,
index 965da8d..74c8089 100755 (executable)
@@ -97,8 +97,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define TBM_LOCK_CTRL_BACKEND_VALID(flags) \
         (flags&TBM_LOCK_CTRL_BACKEND)
 
-#define TBM_DEBUG(fmt, ...)   fprintf (stderr, "[TBM:DEBUG] " fmt, ##__VA_ARGS__)
-#define TBM_LOG(fmt, ...)  fprintf (stderr, "[TBM:%s] " fmt, __func__, ##__VA_ARGS__)
+#define TBM_DEBUG(fmt, ...)   fprintf (stderr, "[TBM:DEBUG(%d)] " fmt, getpid(), ##__VA_ARGS__)
+#define TBM_LOG(fmt, ...)  fprintf (stderr, "[TBM(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__)
 
 typedef union _tbm_bo_cache_state tbm_bo_cache_state;