summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-03 21:24:32 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-03 21:24:32 (GMT)
commitaf7a2fa62908aec1fc4956abdfdc647259489ab7 (patch)
treebf2da5b87fec6be0e764647dd29ee99de3ccc396 /src/H5B.c
parentb5809e0780b136f7062b1aaa27c793ef4399996b (diff)
downloadhdf5-af7a2fa62908aec1fc4956abdfdc647259489ab7.zip
hdf5-af7a2fa62908aec1fc4956abdfdc647259489ab7.tar.gz
hdf5-af7a2fa62908aec1fc4956abdfdc647259489ab7.tar.bz2
[svn-r3231] Purpose:
Improved debugging output Description: Added a little more descriptive information to the output for h5debug when debugging B-trees in the file. Platforms tested: FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5B.c b/src/H5B.c
index 04d46f5..d9ee960 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -2149,9 +2149,10 @@ H5B_debug(H5F_t *f, haddr_t addr, FILE *stream, intn indent, intn fwidth,
/*
* Print the values.
*/
- HDfprintf(stream, "%*s%-*s %d\n", indent, "", fwidth,
+ HDfprintf(stream, "%*s%-*s %s\n", indent, "", fwidth,
"Tree type ID:",
- (int) (bt->type->id));
+ ((bt->type->id)==H5B_SNODE_ID ? "H5B_SNODE_ID" :
+ ((bt->type->id)==H5B_ISTORE_ID ? "H5B_ISTORE_ID" : "Unknown!")));
HDfprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth,
"Size of node:",
(unsigned long) H5B_nodesize(f, bt->type, NULL, bt->sizeof_rkey));