summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-09-25 15:49:26 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-09-25 15:49:26 (GMT)
commitc439d91f811d91df590996cff2d3162c541bb1cf (patch)
tree2f4d529d110b2cb54bacc823795a38a5fa8bd137 /tools/h5diff
parentafcf6b7608a2468a6d5b01bad23d427312cf45ae (diff)
downloadhdf5-c439d91f811d91df590996cff2d3162c541bb1cf.zip
hdf5-c439d91f811d91df590996cff2d3162c541bb1cf.tar.gz
hdf5-c439d91f811d91df590996cff2d3162c541bb1cf.tar.bz2
[svn-r12678] bug fix
the number of atribute differences was not added to the total sum of differences
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diff_common.c4
-rw-r--r--tools/h5diff/h5diff_common.h2
-rw-r--r--tools/h5diff/h5diff_main.c2
-rw-r--r--tools/h5diff/ph5diff_main.c4
4 files changed, 7 insertions, 5 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index 9ac4d56..c822d42 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -181,7 +181,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
*-------------------------------------------------------------------------
*/
-void print_results(diff_opt_t* options)
+void print_results(diff_opt_t* options, hsize_t nfound)
{
if (options->m_quiet || options->err_stat)
return;
@@ -202,6 +202,8 @@ void print_results(diff_opt_t* options)
printf("Use -v for a list of objects.\n");
}
+ print_found(nfound);
+
}
/*-------------------------------------------------------------------------
diff --git a/tools/h5diff/h5diff_common.h b/tools/h5diff/h5diff_common.h
index 31b1b29..1d0280e 100644
--- a/tools/h5diff/h5diff_common.h
+++ b/tools/h5diff/h5diff_common.h
@@ -20,5 +20,5 @@ int check_n_input( const char* );
int check_f_input( const char* );
void parse_input(int argc, const char* argv[], const char** fname1, const char** fname2, const char** objname1, const char** objname2, diff_opt_t* options);
void h5diff_exit(int status);
-void print_results(diff_opt_t* options);
+void print_results(diff_opt_t* options, hsize_t nfound);
diff --git a/tools/h5diff/h5diff_main.c b/tools/h5diff/h5diff_main.c
index 454a033..95eecf4 100644
--- a/tools/h5diff/h5diff_main.c
+++ b/tools/h5diff/h5diff_main.c
@@ -63,7 +63,7 @@ int main(int argc, const char *argv[])
nfound = h5diff(fname1,fname2,objname1,objname2,&options);
- print_results(&options);
+ print_results(&options,nfound);
/*-------------------------------------------------------------------------
* exit code
diff --git a/tools/h5diff/ph5diff_main.c b/tools/h5diff/ph5diff_main.c
index bb4cd1a..d652ccd 100644
--- a/tools/h5diff/ph5diff_main.c
+++ b/tools/h5diff/ph5diff_main.c
@@ -79,7 +79,7 @@ int main(int argc, const char *argv[])
nfound = h5diff(fname1,fname2,objname1,objname2,&options);
- print_results(&options);
+ print_results(&options,nfound);
MPI_Finalize();
@@ -95,7 +95,7 @@ int main(int argc, const char *argv[])
MPI_Barrier(MPI_COMM_WORLD);
- print_results(&options);
+ print_results(&options,nfound);
print_manager_output();
MPI_Finalize();