for (i = 0; i < surf->num_bos; i++) {
size = tbm_bo_data_get_size(surf->bos[i]->bo_data, error);
- if (error != TBM_ERROR_NONE)
+ if (*error != TBM_ERROR_NONE)
TBM_WRN("fail to get the size of bo.");
TBM_SNRPRINTF(str, len, c, " bo:%-12p %-26d%-10d\n",
surf->bos[i],
LIST_FOR_EACH_ENTRY(bo, &bufmgr->bo_list, item_link) {
size = tbm_bo_data_get_size(bo->bo_data, error);
- if (error != TBM_ERROR_NONE)
+ if (*error != TBM_ERROR_NONE)
TBM_WRN("fail to get the size of bo.");
key = tbm_bo_data_export_key(bo->bo_data, error);
- if (error != TBM_ERROR_NONE)
+ if (*error != TBM_ERROR_NONE)
TBM_WRN("fail to get the tdm_key of bo.");
TBM_SNRPRINTF(str, len, c, "%-3d %-11p %-5d %-7d %-6d %-5u %-7d %-11p %-4d\n",
++bo_cnt,