summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-29 15:43:33 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-29 15:43:33 (GMT)
commit7766d925a0daea3ac6717897287e3a3920849884 (patch)
treea105c16db3b690e0f2a4722cd88c10070413e948 /tools/h5dump
parent26152e7a0e93c1fdb219cdf9d3020e85a8c71c5e (diff)
downloadhdf5-7766d925a0daea3ac6717897287e3a3920849884.zip
hdf5-7766d925a0daea3ac6717897287e3a3920849884.tar.gz
hdf5-7766d925a0daea3ac6717897287e3a3920849884.tar.bz2
[svn-r20365] BZ1725: H5DUMP displays type of reference for H5T_REFERENCE
bring r20349 from trunk
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 71b0804..def4f8c 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -1241,16 +1241,12 @@ print_datatype(hid_t type,unsigned in_group)
case H5T_REFERENCE:
printf("H5T_REFERENCE");
/* The BNF document states that the type of reference should be
- * displayed after "H5T_REFERENCE". Therefore add the missing
- * reference type if the region command line option is used. This
- * reference type will not be displayed if the region option is not used. */
- if(display_region) {
- if (H5Tequal(type, H5T_STD_REF_DSETREG)==TRUE) {
- printf(" { H5T_STD_REF_DSETREG }");
- }
- else {
- printf(" { H5T_STD_REF_OBJECT }");
- }
+ * displayed after "H5T_REFERENCE". */
+ if (H5Tequal(type, H5T_STD_REF_DSETREG)==TRUE) {
+ printf(" { H5T_STD_REF_DSETREG }");
+ }
+ else {
+ printf(" { H5T_STD_REF_OBJECT }");
}
break;