diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2012-04-02 18:28:14 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2012-04-02 18:28:14 (GMT) |
commit | d41e30a716594bf4a353ad3a178428c839d05d80 (patch) | |
tree | 21821547abfd2ad79ecc9df519314238bfa96764 /hl | |
parent | bd26865f7d69fed1e926e6a3ec5f8653ae0eb6da (diff) | |
download | hdf5-d41e30a716594bf4a353ad3a178428c839d05d80.zip hdf5-d41e30a716594bf4a353ad3a178428c839d05d80.tar.gz hdf5-d41e30a716594bf4a353ad3a178428c839d05d80.tar.bz2 |
[svn-r22241] Fix the failures for h5watch due to format indentation.
Diffstat (limited to 'hl')
-rw-r--r-- | hl/tools/h5watch/h5watch.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hl/tools/h5watch/h5watch.c b/hl/tools/h5watch/h5watch.c index c9dfcf6..7cf8ff6 100644 --- a/hl/tools/h5watch/h5watch.c +++ b/hl/tools/h5watch/h5watch.c @@ -128,6 +128,7 @@ static struct long_options l_opts[] = { static herr_t doprint(hid_t did, hsize_t *start, hsize_t *block, int rank) { + h5tools_context_t ctx; /* print context */ h5tool_format_t info; /* Format info for the tools library */ static char fmt_double[16], fmt_float[16]; /* Format info */ struct subset_t subset; /* Subsetting info */ @@ -152,6 +153,8 @@ doprint(hid_t did, hsize_t *start, hsize_t *block, int rank) subset.block.data[i] = block[i]; } + HDmemset(&ctx, 0, sizeof(ctx)); + /* Set to all default values and then override */ HDmemset(&info, 0, sizeof info); @@ -222,9 +225,11 @@ doprint(hid_t did, hsize_t *start, hsize_t *block, int rank) } /* Print the values. */ - if((ret_value = h5tools_dump_dset(stdout, &info, did, -1, &subset, -1)) < 0) + if((ret_value = h5tools_dump_dset(stdout, &info, &ctx, did, -1, &subset)) < 0) error_msg("unable to print data\n"); + HDfprintf(stdout, "\n"); + return(ret_value); } /* doprint() */ |