summaryrefslogtreecommitdiffstats
path: root/src/H5trace.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-06-04 20:47:04 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-06-04 20:47:04 (GMT)
commit8f74cc85d8c0f499277622a40d90679a4b0b1db1 (patch)
tree3c125a57f7b29fbb985029b10c0d11202e328354 /src/H5trace.c
parentfad77fd2c29615f57f05547f41819f77d828b2d8 (diff)
downloadhdf5-8f74cc85d8c0f499277622a40d90679a4b0b1db1.zip
hdf5-8f74cc85d8c0f499277622a40d90679a4b0b1db1.tar.gz
hdf5-8f74cc85d8c0f499277622a40d90679a4b0b1db1.tar.bz2
[svn-r27152] Updated bin/trace and src/H5trace.c to handle the H5D_vds_view_t
enum type. Tested on: jam
Diffstat (limited to 'src/H5trace.c')
-rw-r--r--src/H5trace.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5trace.c b/src/H5trace.c
index 6b12318..66b3a0c 100644
--- a/src/H5trace.c
+++ b/src/H5trace.c
@@ -680,6 +680,36 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
} /* end else */
break;
+ case 'v':
+ if(ptr) {
+ if(vp)
+ fprintf(out, "0x%lx", (unsigned long)vp);
+ else
+ fprintf(out, "NULL");
+ } /* end if */
+ else {
+ H5D_vds_view_t view = (H5D_vds_view_t)va_arg(ap, int);
+
+ switch(view) {
+ case H5D_VDS_ERROR:
+ fprintf(out, "H5D_VDS_ERROR");
+ break;
+
+ case H5D_VDS_FIRST_MISSING:
+ fprintf(out, "H5D_VDS_FIRST_MISSING");
+ break;
+
+ case H5D_VDS_LAST_AVAILABLE:
+ fprintf(out, "H5D_VDS_LAST_AVAILABLE");
+ break;
+
+ default:
+ fprintf(out, "%ld", (long)view);
+ break;
+ } /* end switch */
+ } /* end else */
+ break;
+
default:
fprintf (out, "BADTYPE(D%c)", type[1]);
goto error;