summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-06-05 14:37:21 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-06-05 14:37:21 (GMT)
commit671d37e6c5777a5e4c67013ffa390d26b6932845 (patch)
treeaa07ba695cf88cccf18ec2da52c19c4be5aaf439 /tools/h5dump/h5dump.c
parentb75540244fb313f179fe11c587e5e008677e6762 (diff)
downloadhdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.zip
hdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.tar.gz
hdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.tar.bz2
[svn-r15143]
Fix for #1169 http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1169 don't print attributes to stdout when doing binary output added an attribute to the file run on the binary output test tested: windows, linux
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index a5ce70c..dffa251 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -2066,13 +2066,18 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset)
indent += COL;
- /* attribute iteration: if there is a request to do H5_INDEX_CRT_ORDER and tracking order is set
- in the group for attributes, then, sort by creation order, otherwise by name */
-
- if( (sort_by == H5_INDEX_CRT_ORDER) && (attr_crt_order_flags & H5P_CRT_ORDER_TRACKED))
- H5Aiterate2(did, sort_by, sort_order, NULL, dump_attr_cb, NULL);
- else
- H5Aiterate2(did, H5_INDEX_NAME, sort_order, NULL, dump_attr_cb, NULL);
+ if ( !bin_output )
+ {
+
+ /* attribute iteration: if there is a request to do H5_INDEX_CRT_ORDER and tracking order is set
+ in the group for attributes, then, sort by creation order, otherwise by name */
+
+ if( (sort_by == H5_INDEX_CRT_ORDER) && (attr_crt_order_flags & H5P_CRT_ORDER_TRACKED))
+ H5Aiterate2(did, sort_by, sort_order, NULL, dump_attr_cb, NULL);
+ else
+ H5Aiterate2(did, H5_INDEX_NAME, sort_order, NULL, dump_attr_cb, NULL);
+
+ }
indent -= COL;