diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-02-17 15:28:55 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-02-17 15:28:55 (GMT) |
commit | 232a032d54fb20304b9a2fd6961cfbc7fd3b6ff8 (patch) | |
tree | 72daea1679963fa787ef4d410e802cd7ea32761b /tools/h5tools.c | |
parent | 3c0df63acd58ca15bf9cc6774d7dba83f35a5f47 (diff) | |
download | hdf5-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/h5tools.c')
-rw-r--r-- | tools/h5tools.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c index 0f55fa4..f26ea34 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -610,7 +610,6 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info, static char fmt_llong[8], fmt_ullong[8]; H5T_str_t pad; H5G_stat_t sb; - /* Build default formats for long long types */ if (!fmt_llong[0]) { @@ -974,9 +973,15 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info, } /* Print OID */ - h5dump_str_append(str, "-%lu:%lu:%lu:%lu", - sb.fileno[1], sb.fileno[0], - sb.objno[1], sb.objno[0]); + if (info->obj_hidefileno){ + h5dump_str_append(str, info->obj_format, + sb.objno[1], sb.objno[0]); + } + else { + h5dump_str_append(str, info->obj_format, + sb.fileno[1], sb.fileno[0], + sb.objno[1], sb.objno[0]); + } } } else { @@ -1052,6 +1057,9 @@ h5dump_simple_prefix(FILE *stream, const h5dump_t *info, /* Terminate previous line, if any */ if (ctx->cur_column) { fputs(OPT(info->line_suf, ""), stream); + /*if (info->line_ncols != ctx->cur_column) { + putc('\n', stream); + }*/ putc('\n',stream); fputs(OPT(info->line_sep, ""), stream); } |