From b211b5e236891365418831d1f6b25f70f43ec563 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 2 Jul 2021 11:22:31 +0900 Subject: [PATCH] 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 --- src/tbm_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1