summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-06-08 03:04:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-06-08 03:04:42 (GMT)
commitccea4bb7b5644666d0cb70b4d5c35a12fc133d59 (patch)
treecc3c3dc038b35e31e1219751520c16686185a35f /src/H5T.c
parent58c565aee7919f58de5f6de7a185c792e9e0a545 (diff)
downloadhdf5-ccea4bb7b5644666d0cb70b4d5c35a12fc133d59.zip
hdf5-ccea4bb7b5644666d0cb70b4d5c35a12fc133d59.tar.gz
hdf5-ccea4bb7b5644666d0cb70b4d5c35a12fc133d59.tar.bz2
[svn-r13841] Description:
Add a little more information to the debugging routine, for VL datatypes. Minor code cleanups Tested on: Mac OS X/32 10.4.9 (duty) Too minor to require h5committest
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/H5T.c b/src/H5T.c
index f07f23c..b4bfe2d 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -5176,6 +5176,12 @@ H5T_debug(const H5T_t *dt, FILE *stream)
case H5T_ENUM:
s1 = "enum";
break;
+ case H5T_VLEN:
+ if(H5T_IS_VL_STRING(dt->shared))
+ s1 = "str";
+ else
+ s1 = "vlen";
+ break;
default:
s1 = "";
break;
@@ -5297,11 +5303,31 @@ H5T_debug(const H5T_t *dt, FILE *stream)
fprintf(stream, "\n");
} else if (H5T_VLEN==dt->shared->type) {
- /* Variable data type */
- fprintf(stream, " VLEN ");
- H5T_debug(dt->shared->parent, stream);
- fprintf(stream, "\n");
+ switch(dt->shared->u.vlen.loc) {
+ case H5T_LOC_MEMORY:
+ fprintf(stream, ", loc=memory");
+ break;
+
+ case H5T_LOC_DISK:
+ fprintf(stream, ", loc=disk");
+ break;
+ default:
+ fprintf(stream, ", loc=UNKNOWN");
+ break;
+ } /* end switch */
+
+ if(H5T_IS_VL_STRING(dt->shared)) {
+ /* Variable length string datatype */
+ fprintf(stream, ", variable-length");
+ } /* end if */
+ else {
+ /* Variable length sequence datatype */
+ fprintf(stream, " VLEN ");
+ H5T_debug(dt->shared->parent, stream);
+ fprintf(stream, "\n");
+ } /* end else */
+
} else if (H5T_ENUM==dt->shared->type) {
/* Enumeration data type */
fprintf(stream, " ");