summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_dset.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_dset.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_dset.c')
-rw-r--r--tools/lib/h5diff_dset.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index 1a5778a..9710419 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -55,12 +55,12 @@ hsize_t diff_dataset( hid_t file1_id,
/* Open the datasets */
if((did1 = H5Dopen2(file1_id, obj1_name, H5P_DEFAULT)) < 0)
{
- printf("Cannot open dataset <%s>\n", obj1_name);
+ parallel_print("Cannot open dataset <%s>\n", obj1_name);
goto error;
}
if((did2 = H5Dopen2(file2_id, obj2_name, H5P_DEFAULT)) < 0)
{
- printf("Cannot open dataset <%s>\n", obj2_name);
+ parallel_print("Cannot open dataset <%s>\n", obj2_name);
goto error;
}
/* enable error reporting */
@@ -880,33 +880,33 @@ void print_sizes( const char *obj1,
m_size1 = H5Tget_size( m_tid1 );
m_size2 = H5Tget_size( m_tid2 );
- printf("\n");
- printf("------------------\n");
- printf("sizeof(char) %u\n", sizeof(char) );
- printf("sizeof(short) %u\n", sizeof(short) );
- printf("sizeof(int) %u\n", sizeof(int) );
- printf("sizeof(long) %u\n", sizeof(long) );
- printf("<%s> ------------------\n", obj1);
- printf("type on file ");
+ parallel_print("\n");
+ parallel_print("------------------\n");
+ parallel_print("sizeof(char) %u\n", sizeof(char) );
+ parallel_print("sizeof(short) %u\n", sizeof(short) );
+ parallel_print("sizeof(int) %u\n", sizeof(int) );
+ parallel_print("sizeof(long) %u\n", sizeof(long) );
+ parallel_print("<%s> ------------------\n", obj1);
+ parallel_print("type on file ");
print_type(f_tid1);
- printf("\n");
- printf("size on file %u\n", f_size1 );
+ parallel_print("\n");
+ parallel_print("size on file %u\n", f_size1 );
- printf("type on memory ");
+ parallel_print("type on memory ");
print_type(m_tid1);
- printf("\n");
- printf("size on memory %u\n", m_size1 );
+ parallel_print("\n");
+ parallel_print("size on memory %u\n", m_size1 );
- printf("<%s> ------------------\n", obj2);
- printf("type on file ");
+ parallel_print("<%s> ------------------\n", obj2);
+ parallel_print("type on file ");
print_type(f_tid2);
- printf("\n");
- printf("size on file %u\n", f_size2 );
+ parallel_print("\n");
+ parallel_print("size on file %u\n", f_size2 );
- printf("type on memory ");
+ parallel_print("type on memory ");
print_type(m_tid2);
- printf("\n");
- printf("size on memory %u\n", m_size2 );
- printf("\n");
+ parallel_print("\n");
+ parallel_print("size on memory %u\n", m_size2 );
+ parallel_print("\n");
}
#endif /* H5DIFF_DEBUG */