add TBM_DEBUG macro and put the prefix string at tbm log. 36/54036/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Dec 2015 02:59:49 +0000 (11:59 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Dec 2015 02:59:49 +0000 (11:59 +0900)
Change-Id: Ia503e75da540533978333c1ec3bc3e48848c6307

src/tbm_bufmgr_int.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f589afe..965da8d
@@ -97,7 +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_LOG(...)  fprintf (stderr, __VA_ARGS__)
+#define TBM_DEBUG(fmt, ...)   fprintf (stderr, "[TBM:DEBUG] " fmt, ##__VA_ARGS__)
+#define TBM_LOG(fmt, ...)  fprintf (stderr, "[TBM:%s] " fmt, __func__, ##__VA_ARGS__)
 
 typedef union _tbm_bo_cache_state tbm_bo_cache_state;