From 08c7f78ad4889a30ae2079b063caf715a66c310d Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 14 Mar 2017 13:06:22 +0900 Subject: [PATCH] use TBM_LOG_E at error case in tbm_bufmgr_backend.c Change-Id: I6c3ce49a6c9cbaa7a84057815257fdaa8a58cc23 --- src/tbm_bufmgr_backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tbm_bufmgr_backend.c b/src/tbm_bufmgr_backend.c index f3a8218..9bbf53c 100644 --- a/src/tbm_bufmgr_backend.c +++ b/src/tbm_bufmgr_backend.c @@ -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; } -- 2.34.1