From 651facc1446c36e6d77cc328682dac397bae27e3 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 31 Jul 2020 10:34:27 -0500 Subject: Use PRIu32 and "zu" formats. Delete some casts from `size_t`. --- src/H5Cdbg.c | 4 ++-- src/H5HLdbg.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/H5Cdbg.c b/src/H5Cdbg.c index 55220a5..11da85c 100644 --- a/src/H5Cdbg.c +++ b/src/H5Cdbg.c @@ -289,8 +289,8 @@ H5C_dump_cache_skip_list(H5C_t * cache_ptr, char * calling_fcn) HDassert(calling_fcn != NULL); HDfprintf(stdout, "\n\nDumping metadata cache skip list from %s.\n", calling_fcn); - HDfprintf(stdout, " slist len = %u.\n", cache_ptr->slist_len); - HDfprintf(stdout, " slist size = %lld.\n", (long long)(cache_ptr->slist_size)); + HDfprintf(stdout, " slist len = %" PRIu32 ".\n", cache_ptr->slist_len); + HDfprintf(stdout, " slist size = %zu.\n", cache_ptr->slist_size); if(cache_ptr->slist_len > 0) { /* If we get this far, all entries in the cache are listed in the diff --git a/src/H5HLdbg.c b/src/H5HLdbg.c index a299e47..8950a02 100644 --- a/src/H5HLdbg.c +++ b/src/H5HLdbg.c @@ -66,9 +66,9 @@ H5HL_debug(H5F_t *f, haddr_t addr, FILE * stream, int indent, int fwidth)) H5E_THROW(H5E_CANTPROTECT, "unable to load/protect local heap"); HDfprintf(stream, "%*sLocal Heap...\n", indent, ""); - HDfprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth, + HDfprintf(stream, "%*s%-*s %zu\n", indent, "", fwidth, "Header size (in bytes):", - (unsigned long)h->prfx_size); + h->prfx_size); HDfprintf(stream, "%*s%-*s %" PRIuHADDR "\n", indent, "", fwidth, "Address of heap data:", h->dblk_addr); -- cgit v0.12