use TBM_LOG_E at error case in tbm_bufmgr_backend.c 73/118773/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Mar 2017 04:06:22 +0000 (13:06 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Mar 2017 04:06:22 +0000 (13:06 +0900)
Change-Id: I6c3ce49a6c9cbaa7a84057815257fdaa8a58cc23

src/tbm_bufmgr_backend.c

index f3a8218d0cf03fa9ffa5eee655ab21d5c69df60c..9bbf53ca38f2700b04821c5b3c21a315bbf3f7ef 100644 (file)
@@ -43,8 +43,10 @@ tbm_bufmgr_backend tbm_backend_alloc(void)
        tbm_bufmgr_backend bufmgr_backend;
 
        bufmgr_backend = calloc(1, sizeof(struct _tbm_bufmgr_backend));
-       if (!bufmgr_backend)
+       if (!bufmgr_backend) {
+               TBM_LOG_E("error: fail to allocate the bufmgr_backend\n");
                return NULL;
+       }
 
        return bufmgr_backend;
 }