diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-11-04 20:34:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-11-04 20:34:29 (GMT) |
commit | ac212d18f8b1f717e1850aa0d8b64128b56bdfd7 (patch) | |
tree | f6010887aee48d3a5aac568bce76682233ef8be1 | |
parent | f950d7bdb92b38b11862e9133ac9acb4b7eb5397 (diff) | |
download | hdf5-ac212d18f8b1f717e1850aa0d8b64128b56bdfd7.zip hdf5-ac212d18f8b1f717e1850aa0d8b64128b56bdfd7.tar.gz hdf5-ac212d18f8b1f717e1850aa0d8b64128b56bdfd7.tar.bz2 |
[svn-r19725] Description:
Add a little bit of extra info to the output from h5debug when
displaying global heaps, and make it dump the file's superblock again when
an address is not given on the command line.
Tested on:
FreeBSD/32 6.3 (duty) w/debug
(too minor to require h5committest)
-rw-r--r-- | src/H5HGdbg.c | 3 | ||||
-rw-r--r-- | tools/misc/h5debug.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/H5HGdbg.c b/src/H5HGdbg.c index 38b7047..f301701 100644 --- a/src/H5HGdbg.c +++ b/src/H5HGdbg.c @@ -106,6 +106,9 @@ H5HG_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, if (h->obj[u].begin) { sprintf (buf, "Object %u", u); fprintf (stream, "%*s%s\n", indent, "", buf); + fprintf (stream, "%*s%-*s %lu\n", indent+3, "", MIN(fwidth-3, 0), + "Obffset in block:", + (unsigned long)(h->obj[u].begin - h->chunk)); fprintf (stream, "%*s%-*s %d\n", indent+3, "", MIN(fwidth-3, 0), "Reference count:", h->obj[u].nrefs); diff --git a/tools/misc/h5debug.c b/tools/misc/h5debug.c index f7804fb..7b4215a 100644 --- a/tools/misc/h5debug.c +++ b/tools/misc/h5debug.c @@ -219,7 +219,7 @@ main(int argc, char *argv[]) { hid_t fid, fapl, dxpl; H5F_t *f; - haddr_t addr = 1, extra = 0, extra2 = 0, extra3 = 0, extra4 = 0; + haddr_t addr = 0, extra = 0, extra2 = 0, extra3 = 0, extra4 = 0; uint8_t sig[H5F_SIGNATURE_LEN]; size_t u; herr_t status = SUCCEED; |