diff options
Diffstat (limited to 'tools/h5repack/h5repack_verify.c')
-rw-r--r-- | tools/h5repack/h5repack_verify.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/h5repack/h5repack_verify.c b/tools/h5repack/h5repack_verify.c index 6381075..a19f9f6 100644 --- a/tools/h5repack/h5repack_verify.c +++ b/tools/h5repack/h5repack_verify.c @@ -14,8 +14,10 @@ #include "hdf5.h" #include "h5test.h" +#include "h5tools_utils.h" #include "h5repack.h" +extern char *progname; /*------------------------------------------------------------------------- @@ -366,12 +368,12 @@ int h5repack_cmpdcpl(const char *fname1, /* Open the files */ if ((fid1=H5Fopen(fname1,H5F_ACC_RDONLY,H5P_DEFAULT))<0 ) { - printf("<%s>: %s\n", fname1, H5FOPENERROR ); + error_msg(progname, "<%s>: %s\n", fname1, H5FOPENERROR ); return -1; } if ((fid2=H5Fopen(fname2,H5F_ACC_RDONLY,H5P_DEFAULT))<0 ) { - printf("<%s>: %s\n", fname2, H5FOPENERROR ); + error_msg(progname, "<%s>: %s\n", fname2, H5FOPENERROR ); H5Fclose(fid1); return -1; } @@ -429,7 +431,7 @@ int h5repack_cmpdcpl(const char *fname1, if (ret==0) { - printf("Property lists for <%s> are different\n",travt1->objs[i].name); + error_msg(progname, "property lists for <%s> are different\n",travt1->objs[i].name); goto error; } |