diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-06-30 20:57:01 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-06-30 20:57:01 (GMT) |
commit | c3252ef1f2ac06e12fe91e9e7e1591f22c4819f4 (patch) | |
tree | 6820fc55746f795aacb6721607b7bdd5987dd983 /tools/h5diff | |
parent | e6589b04f0a4312ddabae2551b972d6bb073632e (diff) | |
download | hdf5-c3252ef1f2ac06e12fe91e9e7e1591f22c4819f4.zip hdf5-c3252ef1f2ac06e12fe91e9e7e1591f22c4819f4.tar.gz hdf5-c3252ef1f2ac06e12fe91e9e7e1591f22c4819f4.tar.bz2 |
[svn-r11005] Purpose:
bug fix
Description:
the numbers of differences was not printed for each object
Solution:
print it
Platforms tested:
linux
solaris
aix
Misc. update:
Diffstat (limited to 'tools/h5diff')
-rw-r--r-- | tools/h5diff/h5diff_common.c | 54 |
1 files changed, 21 insertions, 33 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c index 5387f2a..51ba881 100644 --- a/tools/h5diff/h5diff_common.c +++ b/tools/h5diff/h5diff_common.c @@ -175,43 +175,31 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char** /*------------------------------------------------------------------------- * Function: print_results * - * Purpose: print how many differences were found, if files were comparable or not + * Purpose: print several information messages * *------------------------------------------------------------------------- */ -void print_results(hsize_t nfound, diff_opt_t* options) -{ - /*------------------------------------------------------------------------- - * print how many differences were found - *------------------------------------------------------------------------- - */ - if (!options->m_quiet) - { - printf("----------------------------------------------------\n"); - printf("Summary\n"); - printf("----------------------------------------------------\n"); - if (options->cmn_objs==0 && !options->err_stat) - { - printf("No common objects found. Files are not comparable.\n"); - if (!options->m_verbose) - printf("Use -v for a list of objects.\n"); - } - else - { - /* no errors found */ - if (!options->err_stat) - { - /* objects were not compared */ - if (options->not_cmp==1) - printf("Some objects are not comparable\n"); - else - /* objects were compared, print the number of differences */ - print_found(nfound); - } - } - } -} + void print_results(hsize_t nfound, diff_opt_t* options) + { + if (options->m_quiet || options->err_stat) + return; + + if (options->cmn_objs==0) + { + printf("No common objects found. Files are not comparable.\n"); + if (!options->m_verbose) + printf("Use -v for a list of objects.\n"); + } + + if (options->not_cmp==1) + { + printf("Some objects are not comparable\n"); + if (!options->m_verbose) + printf("Use -v for a list of objects.\n"); + } + + } /*------------------------------------------------------------------------- * Function: check_n_input |