summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2014-06-27 22:11:36 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2014-06-27 22:11:36 (GMT)
commit83162d7d906266edfb380c5c96adde81e7f04400 (patch)
treed327591f332f4ea4744c9106c936ef183b146f7c
parentcb0eab825402c931fc65ba7671385706c479ccba (diff)
downloadhdf5-83162d7d906266edfb380c5c96adde81e7f04400.zip
hdf5-83162d7d906266edfb380c5c96adde81e7f04400.tar.gz
hdf5-83162d7d906266edfb380c5c96adde81e7f04400.tar.bz2
[svn-r25371] Add some more debug info
-rw-r--r--src/H5FF.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5FF.c b/src/H5FF.c
index 97a13d3..e02fcb7 100644
--- a/src/H5FF.c
+++ b/src/H5FF.c
@@ -5124,6 +5124,18 @@ H5Dquery_ff(hid_t dset_id, hid_t query_id, hid_t scope_id, hid_t rcxt_id)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "failed to apply query on Dataset")
ret_value = udata.space_query;
+
+ {
+ hsize_t start_coord[H5S_MAX_RANK + 1], end_coord[H5S_MAX_RANK + 1], nelmts;
+
+ if (FAIL == H5Sget_select_bounds(ret_value, start_coord, end_coord))
+ HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSELECT, FAIL, "unable to get bounds");
+ if (0 == (nelmts = (hsize_t) H5Sget_select_npoints(ret_value)))
+ HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "invalid number of elements");
+ printf("Created dataspace from index with %llu elements [(%llu, %llu):(%llu, %llu)]\n",
+ nelmts, start_coord[0], start_coord[1], end_coord[0], end_coord[1]);
+ }
+
}
done: