summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-02-17 15:28:55 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-02-17 15:28:55 (GMT)
commit232a032d54fb20304b9a2fd6961cfbc7fd3b6ff8 (patch)
tree72daea1679963fa787ef4d410e802cd7ea32761b /tools/h5dump.c
parent3c0df63acd58ca15bf9cc6774d7dba83f35a5f47 (diff)
downloadhdf5-232a032d54fb20304b9a2fd6961cfbc7fd3b6ff8.zip
hdf5-232a032d54fb20304b9a2fd6961cfbc7fd3b6ff8.tar.gz
hdf5-232a032d54fb20304b9a2fd6961cfbc7fd3b6ff8.tar.bz2
[svn-r1969] fixed a bug with the objrefs. added a format string to the dump struct to
display the format for the obj refs.
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r--tools/h5dump.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index 833ff46..4bb3bcd 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -1075,7 +1075,13 @@ dump_data (hid_t obj_id, int obj_data) {
info.fmt_float = "%g";
info.fmt_schar = "%d";
info.fmt_int = "%d";
-
+ info.fmt_uint = "%u";
+ info.fmt_uchar = "%u";
+ info.fmt_short = "%d";
+ info.fmt_ushort = "%u";
+ info.fmt_long = "%ld";
+ info.fmt_ulong = "%lu";
+
info.str_repeat = 0;
info.raw = 0;
@@ -1087,6 +1093,9 @@ dump_data (hid_t obj_id, int obj_data) {
info.arr_linebreak = 1;
info.skip_first = 1;
+
+ info.obj_hidefileno = 1;
+ info.obj_format = " %lu:%lu";
indent += COL;
/*the depth will tell us how far we need to indent extra. we use to just
use indent but with the merging of the tools lib we have to do something different