summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-01-10 16:24:27 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-01-10 16:24:27 (GMT)
commit2a30e511b9c4f8dbcc5ab82765887f63c9b1184e (patch)
treeef7a2395a605109aab04f0f6c5ce69e3f1725290 /tools/h5dump
parent50926c2ae9752c69f84d2a2e7503df7bc1ab71b9 (diff)
downloadhdf5-2a30e511b9c4f8dbcc5ab82765887f63c9b1184e.zip
hdf5-2a30e511b9c4f8dbcc5ab82765887f63c9b1184e.tar.gz
hdf5-2a30e511b9c4f8dbcc5ab82765887f63c9b1184e.tar.bz2
[svn-r13132]
Fixed #720 h5dump: improve how region references are displayed. h5dump now uses the new API function H5Rget_name to display the name of the dataset referenced instead of its ID. Added a case to the script test file
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c4
-rw-r--r--tools/h5dump/testh5dump.sh.in3
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 1a61197..8386551 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -158,7 +158,7 @@ static h5tool_format_t dataformat = {
" "H5_PRINTF_HADDR_FMT, /*obj_format */
1, /*dset_hidefileno */
- "DATASET "H5_PRINTF_HADDR_FMT" ", /*dset_format */
+ "DATASET %s ", /*dset_format */
"%s", /*dset_blockformat_pre */
"%s", /*dset_ptformat_pre */
"%s", /*dset_ptformat */
@@ -242,7 +242,7 @@ static h5tool_format_t xml_dataformat = {
" "H5_PRINTF_HADDR_FMT, /*obj_format */
1, /*dset_hidefileno */
- "DATASET "H5_PRINTF_HADDR_FMT" ", /*dset_format */
+ "DATASET %s ", /*dset_format */
"%s", /*dset_blockformat_pre */
"%s", /*dset_ptformat_pre */
"%s", /*dset_ptformat */
diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in
index 4c6414d..da1e1dd 100644
--- a/tools/h5dump/testh5dump.sh.in
+++ b/tools/h5dump/testh5dump.sh.in
@@ -338,6 +338,9 @@ TOOLTEST tbin4.ddl -d double -o out4.bin -b FILE tbinary.h5
rm -f $srcdir/../testfiles/out[1-4].bin
fi
+# test for dataset region references
+TOOLTEST tregref.ddl tdatareg.h5
+
if test $nerrors -eq 0 ; then
echo "All $DUMPER tests passed."
fi