summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-01-29 18:58:36 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-01-29 18:58:36 (GMT)
commit9a298fd1dda2ed9b12e68cc64ccce5c95216fd6a (patch)
tree881f4544d4eb49a06ebb56d4b68a31aefb79fde3 /tools/lib/h5diff.c
parent6416329ef8bfc9e1b3f2a0876cd13b83963b13ef (diff)
downloadhdf5-9a298fd1dda2ed9b12e68cc64ccce5c95216fd6a.zip
hdf5-9a298fd1dda2ed9b12e68cc64ccce5c95216fd6a.tar.gz
hdf5-9a298fd1dda2ed9b12e68cc64ccce5c95216fd6a.tar.bz2
[svn-r16373] replaced some printf statements with parallel_print
tested: linux serial and parallel
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 38c5f54..432dd95 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)
@@ -431,17 +431,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 */
@@ -1143,7 +1143,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;