From: SooChan Lim Date: Fri, 2 Jul 2021 02:22:31 +0000 (+0900) Subject: tbm_module: donot print the error message X-Git-Tag: submit/tizen/20210702.072025~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b211b5e236891365418831d1f6b25f70f43ec563;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_module: donot print the error message Donot print the error message when the backend does not support hal_tbm_bufmgr_alloc_surface. Change-Id: Iaeb5a9dc5d0348e7ce4fe51c996a65951b02f29e --- diff --git a/src/tbm_module.c b/src/tbm_module.c index e53f69c..5b8abb5 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -701,8 +701,8 @@ tbm_module_alloc_surface_data(tbm_module *module, int width, int height, int for 0, (hal_tbm_error *)error); if (!surface_data->hal_surface) { - TBM_ERR("hal_tbm_bufmgr_alloc_surface failed."); - *error = TBM_ERROR_INVALID_OPERATION; + if (*error != TBM_ERROR_NOT_SUPPORTED) // do not print the error message when it is not supported. + TBM_ERR("hal_tbm_bufmgr_alloc_surface failed."); free(surface_data); return NULL; }