summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-03-22 14:53:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-03-22 14:53:27 (GMT)
commit06ee92414dd1e9b5e64ee1c7f1fc4141ef01cdff (patch)
tree3174dcbf8cd52657fa66fd361f2baa9040d4ec14 /src/H5B.c
parentb6f34ab3e50a455e8be4700c018404afa1adce26 (diff)
downloadhdf5-06ee92414dd1e9b5e64ee1c7f1fc4141ef01cdff.zip
hdf5-06ee92414dd1e9b5e64ee1c7f1fc4141ef01cdff.tar.gz
hdf5-06ee92414dd1e9b5e64ee1c7f1fc4141ef01cdff.tar.bz2
[svn-r6519] Purpose:
Bug fix/code cleanup/new feature Description: Fix h5debug to work correctly again, with all the changes over the past few months. Improved and cleaned up debugging output available in h5debug. Platforms tested: FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5B.c b/src/H5B.c
index b1463ae..d298bc8 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -2109,15 +2109,19 @@ H5B_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int f
/* If there is a key debugging routine, use it to display the left & right keys */
if (type->debug_key) {
/* Decode the 'left' key & print it */
+ HDfprintf(stream, "%*s%-*s\n", indent + 3, "", MAX(0, fwidth - 3),
+ "Left Key:");
if(bt->key[i].nkey==NULL)
H5B_decode_key(f, bt, i);
- (type->debug_key)(stream, f, dxpl_id, indent+3, MAX (0, fwidth-3),
+ (type->debug_key)(stream, f, dxpl_id, indent+6, MAX (0, fwidth-6),
bt->key[i].nkey, udata);
/* Decode the 'right' key & print it */
+ HDfprintf(stream, "%*s%-*s\n", indent + 3, "", MAX(0, fwidth - 3),
+ "Right Key:");
if(bt->key[i+1].nkey==NULL)
H5B_decode_key(f, bt, i+1);
- (type->debug_key)(stream, f, dxpl_id, indent+3, MAX (0, fwidth-3),
+ (type->debug_key)(stream, f, dxpl_id, indent+6, MAX (0, fwidth-6),
bt->key[i+1].nkey, udata);
}
}