diff options
Diffstat (limited to 'hl/tools/h5watch/h5watch.c')
-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() */ |