summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-12-28 18:54:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-12-28 18:54:34 (GMT)
commit9961fb12777f245340941d14493809ef3c9348c5 (patch)
tree8d03cd7f002c5017ddb667f52abaf34710904727 /src/H5Odtype.c
parent9d8f04ded1e821c6b8b1cff8e98405a009c223c6 (diff)
downloadhdf5-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/H5Odtype.c')
-rw-r--r--src/H5Odtype.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index b18c138..d5b7618 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -1195,9 +1195,18 @@ H5O_dtype_debug(H5F_t *f, const void *mesg, FILE *stream,
case H5T_COMPOUND:
s = "compound";
break;
+ case H5T_REFERENCE:
+ s = "reference";
+ break;
case H5T_ENUM:
s = "enum";
break;
+ case H5T_ARRAY:
+ s = "array";
+ break;
+ case H5T_VLEN:
+ s = "variable-length sequence";
+ break;
default:
sprintf(buf, "H5T_CLASS_%d", (int) (dt->type));
s = buf;
@@ -1271,7 +1280,28 @@ H5O_dtype_debug(H5F_t *f, const void *mesg, FILE *stream,
} else if (H5T_OPAQUE==dt->type) {
fprintf(stream, "%*s%-*s \"%s\"\n", indent, "", fwidth,
"Tag:", dt->u.opaque.tag);
-
+ } else if (H5T_REFERENCE==dt->type) {
+ fprintf(stream, "%*s%-*s\n", indent, "", fwidth,
+ "Fix dumping reference types!");
+ } else if (H5T_VLEN==dt->type) {
+ fprintf(stream, "%*s%-*s\n", indent, "", fwidth,
+ "Fix dumping variable-length types!");
+ } else if (H5T_ARRAY==dt->type) {
+ fprintf(stream, "%*s%-*s %d\n", indent, "", fwidth,
+ "Rank:",
+ dt->u.array.ndims);
+ fprintf(stream, "%*s%-*s {", indent, "", fwidth, "Dim Size:");
+ for (i=0; i<dt->u.array.ndims; i++) {
+ fprintf (stream, "%s%u", i?", ":"", dt->u.array.dim[i]);
+ }
+ fprintf (stream, "}\n");
+ fprintf(stream, "%*s%-*s {", indent, "", fwidth, "Dim Permutation:");
+ for (i=0; i<dt->u.array.ndims; i++) {
+ fprintf (stream, "%s%d", i?", ":"", dt->u.array.perm[i]);
+ }
+ fprintf (stream, "}\n");
+ fprintf(stream, "%*s%s\n", indent, "", "Base type:");
+ H5O_dtype_debug(f, dt->parent, stream, indent+3, MAX(0, fwidth-3));
} else {
switch (dt->u.atomic.order) {
case H5T_ORDER_LE: