Donot print the error message when the backend does not support
hal_tbm_bufmgr_alloc_surface.
Change-Id: Iaeb5a9dc5d0348e7ce4fe51c996a65951b02f29e
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;
}