diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-05-12 20:10:42 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-05-12 20:10:42 (GMT) |
commit | cfd4bf26c4595b10599822c89c38be7e49b662d0 (patch) | |
tree | bac06e6472a398d4455b4bd02bf9ad61a0380cb9 /tools/h5dump | |
parent | ed8882c52dbe406d81cd58cbcc980a883a094131 (diff) | |
download | hdf5-cfd4bf26c4595b10599822c89c38be7e49b662d0.zip hdf5-cfd4bf26c4595b10599822c89c38be7e49b662d0.tar.gz hdf5-cfd4bf26c4595b10599822c89c38be7e49b662d0.tar.bz2 |
[svn-r14977] update comments, formatting
tested: windows, linux
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 060e979..a5ce70c 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -3125,6 +3125,8 @@ set_sort_order(const char *form) * Tuesday, 9. January 2001 * * Modifications: + * PVN, May 2008 + * add an extra parameter PE, to allow printing/not printing of error messages * *------------------------------------------------------------------------- */ @@ -3531,8 +3533,6 @@ handle_links(hid_t fid, const char *links, void UNUSED * data, int pe) if(H5Lunpack_elink_val(buf, linfo.u.val_size, NULL, &elink_file, &elink_path)>=0) { indentation(COL); - printf("LINKCLASS %d\n", linfo.type); - indentation(COL); printf("TARGETFILE \"%s\"\n", elink_file); indentation(COL); printf("TARGETPATH \"%s\"\n", elink_path); @@ -3588,11 +3588,13 @@ handle_datatypes(hid_t fid, const char *type, void UNUSED * data, int pe) { hid_t type_id; - if((type_id = H5Topen2(fid, type, H5P_DEFAULT)) < 0) { + if((type_id = H5Topen2(fid, type, H5P_DEFAULT)) < 0) + { /* check if type is unamed datatype */ unsigned idx = 0; - while(idx < type_table->nobjs ) { + while(idx < type_table->nobjs ) + { char name[128]; if(!type_table->objs[idx].recorded) { @@ -3629,7 +3631,9 @@ handle_datatypes(hid_t fid, const char *type, void UNUSED * data, int pe) H5Tclose(type_id); H5Dclose(dsetid); } - } else { + } + else + { dump_named_datatype(type_id, type); if(H5Tclose(type_id) < 0) |