summaryrefslogtreecommitdiffstats
path: root/src/H5HLdbg.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-05-06 20:49:15 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-05-06 20:49:15 (GMT)
commit457b199a383865febbd52045b343b902ef383512 (patch)
tree45d0ffc5fffcb7b797a5858d9fab7237d4f025a7 /src/H5HLdbg.c
parenta24428efb73ab4dacd8d66edbf0b93276c533cd4 (diff)
downloadhdf5-457b199a383865febbd52045b343b902ef383512.zip
hdf5-457b199a383865febbd52045b343b902ef383512.tar.gz
hdf5-457b199a383865febbd52045b343b902ef383512.tar.bz2
Brings much of the printf changes over from develop
Diffstat (limited to 'src/H5HLdbg.c')
-rw-r--r--src/H5HLdbg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/H5HLdbg.c b/src/H5HLdbg.c
index b4aeaa2..d0cfa96 100644
--- a/src/H5HLdbg.c
+++ b/src/H5HLdbg.c
@@ -64,10 +64,9 @@ BEGIN_FUNC(PRIV, ERR, herr_t, SUCCEED, FAIL,
H5E_THROW(H5E_CANTPROTECT, "unable to load/protect local heap");
HDfprintf(stream, "%*sLocal Heap...\n", indent, "");
- HDfprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth,
- "Header size (in bytes):", (unsigned long)h->prfx_size);
- HDfprintf(stream, "%*s%-*s %a\n", indent, "", fwidth, "Address of heap data:", h->dblk_addr);
- HDfprintf(stream, "%*s%-*s %Zu\n", indent, "", fwidth, "Data bytes allocated for heap:", h->dblk_size);
+ HDfprintf(stream, "%*s%-*s %zu\n", indent, "", fwidth, "Header size (in bytes):", h->prfx_size);
+ HDfprintf(stream, "%*s%-*s %" PRIuHADDR "\n", indent, "", fwidth, "Address of heap data:", h->dblk_addr);
+ HDfprintf(stream, "%*s%-*s %zu\n", indent, "", fwidth, "Data bytes allocated for heap:", h->dblk_size);
/* Traverse the free list and check that all free blocks fall within
* the heap and that no two free blocks point to the same region of
@@ -81,7 +80,7 @@ BEGIN_FUNC(PRIV, ERR, herr_t, SUCCEED, FAIL,
char temp_str[32];
HDsnprintf(temp_str, sizeof(temp_str), "Block #%d:", free_block);
- HDfprintf(stream, "%*s%-*s %8Zu, %8Zu\n", indent + 3, "", MAX(0, fwidth - 9), temp_str,
+ HDfprintf(stream, "%*s%-*s %8zu, %8zu\n", indent + 3, "", MAX(0, fwidth - 9), temp_str,
freelist->offset, freelist->size);
if ((freelist->offset + freelist->size) > h->dblk_size)
HDfprintf(stream, "***THAT FREE BLOCK IS OUT OF BOUNDS!\n");