summaryrefslogtreecommitdiffstats
path: root/src/H5Cdbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Cdbg.c')
-rw-r--r--src/H5Cdbg.c30
1 files changed, 4 insertions, 26 deletions
diff --git a/src/H5Cdbg.c b/src/H5Cdbg.c
index 4d74a0a..ed95bcd 100644
--- a/src/H5Cdbg.c
+++ b/src/H5Cdbg.c
@@ -259,12 +259,6 @@ H5C_dump_cache_LRU(H5C_t *cache_ptr, const char *cache_name)
* Programmer: John Mainzer
* 11/15/14
*
- * Changes: Updated function for the slist_enabled field in H5C_t.
- * Recall that to minimize slist overhead, the slist is
- * empty and not maintained if cache_ptr->slist_enabled is
- * false.
- * JRM -- 5/6/20
- *
*-------------------------------------------------------------------------
*/
#ifndef NDEBUG
@@ -297,49 +291,33 @@ H5C_dump_cache_skip_list(H5C_t *cache_ptr, char *calling_fcn)
i = 0;
node_ptr = H5SL_first(cache_ptr->slist_ptr);
-
- if (node_ptr != NULL) {
-
+ if (node_ptr != NULL)
entry_ptr = (H5C_cache_entry_t *)H5SL_item(node_ptr);
- }
- else {
-
+ else
entry_ptr = NULL;
- }
while (entry_ptr != NULL) {
-
HDassert(entry_ptr->magic == H5C__H5C_CACHE_ENTRY_T_MAGIC);
-
HDfprintf(stdout, "%s%d 0x%016llx %4lld %d/%d %d %s\n", cache_ptr->prefix, i,
(long long)(entry_ptr->addr), (long long)(entry_ptr->size),
(int)(entry_ptr->is_protected), (int)(entry_ptr->is_pinned), (int)(entry_ptr->is_dirty),
entry_ptr->type->name);
-
HDfprintf(stdout, " node_ptr = %p, item = %p\n", (void *)node_ptr, H5SL_item(node_ptr));
/* increment node_ptr before we delete its target */
-
node_ptr = H5SL_next(node_ptr);
-
- if (node_ptr != NULL) {
-
+ if (node_ptr != NULL)
entry_ptr = (H5C_cache_entry_t *)H5SL_item(node_ptr);
- }
- else {
-
+ else
entry_ptr = NULL;
- }
i++;
-
} /* end while */
} /* end if */
HDfprintf(stdout, "\n\n");
FUNC_LEAVE_NOAPI(ret_value)
-
} /* H5C_dump_cache_skip_list() */
#endif /* NDEBUG */