summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-31 15:34:27 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-31 15:34:27 (GMT)
commit651facc1446c36e6d77cc328682dac397bae27e3 (patch)
tree5bd32205cc536d7529e37de6541ded08f507456b /src
parent0bb87534a6a78d5a5bddd84b9aa4867826368d8b (diff)
downloadhdf5-651facc1446c36e6d77cc328682dac397bae27e3.zip
hdf5-651facc1446c36e6d77cc328682dac397bae27e3.tar.gz
hdf5-651facc1446c36e6d77cc328682dac397bae27e3.tar.bz2
Use PRIu32 and "zu" formats. Delete some casts from `size_t`.
Diffstat (limited to 'src')
-rw-r--r--src/H5Cdbg.c4
-rw-r--r--src/H5HLdbg.c4
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);