diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-28 18:54:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-28 18:54:34 (GMT) |
commit | 9961fb12777f245340941d14493809ef3c9348c5 (patch) | |
tree | 8d03cd7f002c5017ddb667f52abaf34710904727 /src/H5HL.c | |
parent | 9d8f04ded1e821c6b8b1cff8e98405a009c223c6 (diff) | |
download | hdf5-9961fb12777f245340941d14493809ef3c9348c5.zip hdf5-9961fb12777f245340941d14493809ef3c9348c5.tar.gz hdf5-9961fb12777f245340941d14493809ef3c9348c5.tar.bz2 |
[svn-r3209] Purpose:
Updating debugging information for new features, etc.
Description:
Lots of the new features added to the library during the last year or so
have been added without updating the debugging routines used by h5debug.
Solution:
Added more of the new features (although not all of them) to the debugging
routines for h5debug. Also included some more information to expand on
the information printed from h5debug.
Platforms tested:
FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'src/H5HL.c')
-rw-r--r-- | src/H5HL.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -296,7 +296,8 @@ H5HL_load(H5F_t *f, haddr_t addr, const void UNUSED *udata1, done: if (!ret_value && heap) { - heap->chunk = H5FL_BLK_FREE(heap_chunk,heap->chunk); + if(heap->chunk) + heap->chunk = H5FL_BLK_FREE(heap_chunk,heap->chunk); for (fl = heap->freelist; fl; fl = tail) { tail = fl->next; H5FL_FREE(H5HL_free_t,fl); @@ -960,11 +961,17 @@ H5HL_debug(H5F_t *f, haddr_t addr, FILE * stream, intn indent, intn fwidth) HRETURN_ERROR(H5E_HEAP, H5E_CANTLOAD, FAIL, "unable to load heap"); } - fprintf(stream, "%*sHeap...\n", indent, ""); + fprintf(stream, "%*sLocal Heap...\n", indent, ""); fprintf(stream, "%*s%-*s %d\n", indent, "", fwidth, "Dirty:", (int) (h->dirty)); fprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth, + "Header size (in bytes):", + (unsigned long) H5HL_SIZEOF_HDR(f)); + HDfprintf(stream, "%*s%-*s %a\n", indent, "", fwidth, + "Address of heap data:", + h->addr); + fprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth, "Data bytes allocated on disk:", (unsigned long) (h->disk_alloc)); fprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth, |