summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-01-29 19:09:30 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-01-29 19:09:30 (GMT)
commit87ebee5951c8fe1e9c047d2d96a42d98d612e4ef (patch)
treef6b45e63ce76b3907f24071fd026e7d0808ee53e /tools/lib/h5diff.c
parent6d2a73d49f9010b5b4aabe72d771603863d41099 (diff)
downloadhdf5-87ebee5951c8fe1e9c047d2d96a42d98d612e4ef.zip
hdf5-87ebee5951c8fe1e9c047d2d96a42d98d612e4ef.tar.gz
hdf5-87ebee5951c8fe1e9c047d2d96a42d98d612e4ef.tar.bz2
[svn-r16375] merge 16373
replaced some printf statements with parallel_print tested: linux serial (parallel tested in trunk)
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 57b8104..596249d 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -197,7 +197,7 @@ hsize_t h5diff(const char *fname1,
if(options->m_quiet && (options->m_verbose || options->m_report))
{
- printf("Error: -q (quiet mode) cannot be added to verbose or report modes\n");
+ parallel_print("Error: -q (quiet mode) cannot be added to verbose or report modes\n");
options->err_stat=1;
return 0;
} /* end if */
@@ -213,7 +213,7 @@ hsize_t h5diff(const char *fname1,
/* open the files */
if((file1_id = H5Fopen(fname1, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0)
{
- printf("h5diff: <%s>: unable to open file\n", fname1);
+ parallel_print("h5diff: <%s>: unable to open file\n", fname1);
options->err_stat = 1;
#ifdef H5_HAVE_PARALLEL
@@ -225,7 +225,7 @@ hsize_t h5diff(const char *fname1,
} /* end if */
if((file2_id = H5Fopen(fname2, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0)
{
- printf("h5diff: <%s>: unable to open file\n", fname2);
+ parallel_print("h5diff: <%s>: unable to open file\n", fname2);
options->err_stat = 1;
#ifdef H5_HAVE_PARALLEL
@@ -250,7 +250,7 @@ hsize_t h5diff(const char *fname1,
*-------------------------------------------------------------------------
*/
if(h5trav_getinfo(file1_id, info1) < 0 || h5trav_getinfo(file2_id, info2) < 0) {
- printf("Error: Could not get file contents\n");
+ parallel_print("Error: Could not get file contents\n");
options->err_stat = 1;
#ifdef H5_HAVE_PARALLEL
if(g_Parallel)
@@ -426,17 +426,17 @@ hsize_t diff_match(hid_t file1_id,
*/
if(options->m_verbose)
{
- printf("\n");
- printf("file1 file2\n");
- printf("---------------------------------------\n");
+ parallel_print("\n");
+ parallel_print("file1 file2\n");
+ parallel_print("---------------------------------------\n");
for(i = 0; i < table->nobjs; i++) {
char c1, c2;
c1 = (table->objs[i].flags[0]) ? 'x' : ' ';
c2 = (table->objs[i].flags[1]) ? 'x' : ' ';
- printf("%5c %6c %-15s\n", c1, c2, table->objs[i].name);
+ parallel_print("%5c %6c %-15s\n", c1, c2, table->objs[i].name);
} /* end for */
- printf ("\n");
+ parallel_print ("\n");
} /* end if */
@@ -1138,7 +1138,7 @@ hsize_t diff(hid_t file1_id,
default:
if(options->m_verbose)
- printf("Comparison not supported: <%s> and <%s> are of type %s\n",
+ parallel_print("Comparison not supported: <%s> and <%s> are of type %s\n",
path1, path2, get_type(type) );
options->not_cmp = 1;
break;