From 6fe240a469ddc1dd552b9c3b00e807ddb7cda26e Mon Sep 17 00:00:00 2001 From: Randy Li Date: Mon, 16 Jul 2018 17:14:09 +0800 Subject: [PATCH] [oasl]: fix the mem debug condition Change-Id: Id790199e3a32a9ca93bcb382f473aa59c28c0ecc Signed-off-by: Randy Li --- osal/mpp_mem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osal/mpp_mem.cpp b/osal/mpp_mem.cpp index 7b7ed0b5..dba4ff34 100644 --- a/osal/mpp_mem.cpp +++ b/osal/mpp_mem.cpp @@ -591,7 +591,7 @@ void MppMemService::dump(const char *caller) mpp_log("mpp_mem node count %d:\n", nodes_cnt); if (nodes_cnt) { for (i = 0; i < nodes_max; i++, node++) { - if (!node->index < 0) + if (node->index < 0) continue; mpp_log("mpp_memory index %d caller %-32s size %-8u ptr %p\n", @@ -603,7 +603,7 @@ void MppMemService::dump(const char *caller) mpp_log("mpp_mem free count %d:\n", frees_cnt); if (frees_cnt) { for (i = 0; i < frees_max; i++, node++) { - if (!node->index < 0) + if (node->index < 0) continue; mpp_log("mpp_freed index %d caller %-32s size %-8u ptr %p\n",