diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-03-25 21:19:25 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-03-25 21:19:25 (GMT) |
commit | 8656f3a9a58bc20f2a4d9938d28d683a7cbd2de4 (patch) | |
tree | f9a72ef3bbac4e24f21e853d0e6d6082e1fbf666 /tools/h5dump | |
parent | 378dc5ec28bd0592c71101cb1a422af73f3f8540 (diff) | |
download | hdf5-8656f3a9a58bc20f2a4d9938d28d683a7cbd2de4.zip hdf5-8656f3a9a58bc20f2a4d9938d28d683a7cbd2de4.tar.gz hdf5-8656f3a9a58bc20f2a4d9938d28d683a7cbd2de4.tar.bz2 |
[svn-r20349] BZ1725: H5DUMP displays type of reference for H5T_REFERENCE
Tested: local linux
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 7f6e3cd..eec1265 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -1198,16 +1198,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; |