summaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/H5Pdapl.c4
-rw-r--r--src/H5trace.c30
2 files changed, 34 insertions, 0 deletions
diff --git a/src/H5Pdapl.c b/src/H5Pdapl.c
index dea45f2..256a46e 100644
--- a/src/H5Pdapl.c
+++ b/src/H5Pdapl.c
@@ -332,6 +332,7 @@ H5Pset_virtual_view(hid_t plist_id, H5D_vds_view_t view)
herr_t ret_value = SUCCEED; /* return value */
FUNC_ENTER_API(FAIL)
+ H5TRACE2("e", "iDv", plist_id, view);
/* Check argument */
if((view != H5D_VDS_FIRST_MISSING) && (view != H5D_VDS_LAST_AVAILABLE))
@@ -371,6 +372,7 @@ H5Pget_virtual_view(hid_t plist_id)
H5D_vds_view_t ret_value; /* Return value */
FUNC_ENTER_API(H5D_VDS_ERROR)
+ H5TRACE1("Dv", "i", plist_id);
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id, H5P_DATASET_ACCESS)))
@@ -475,6 +477,7 @@ H5Pset_virtual_printf_gap(hid_t plist_id, hsize_t gap_size)
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
+ H5TRACE2("e", "ih", plist_id, gap_size);
/* Check argument */
if(gap_size == HSIZE_UNDEF)
@@ -512,6 +515,7 @@ H5Pget_virtual_printf_gap(hid_t plist_id, hsize_t *gap_size)
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(H5D_VDS_ERROR)
+ H5TRACE2("e", "i*h", plist_id, gap_size);
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id, H5P_DATASET_ACCESS)))
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;