tbm_bufmgr: Fix wrong checking error 83/280883/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 6 Sep 2022 07:38:16 +0000 (16:38 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 6 Sep 2022 08:00:13 +0000 (17:00 +0900)
Change-Id: Ibf8079ab0a6ca34258e6b64b0cb8824d4a974060

src/tbm_bufmgr.c

index 6d7ac0df4a16b9223fe2d23b9043a120ece5556a..63a721d74a7481e131312ad773c3181218afc57a 100644 (file)
@@ -538,7 +538,7 @@ _tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, tbm_error_e *error)
 
                        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],
@@ -561,10 +561,10 @@ _tbm_bufmgr_debug_tbm_info_get(tbm_bufmgr bufmgr, tbm_error_e *error)
 
                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,