diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-10-05 14:35:40 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-10-05 14:35:40 (GMT) |
commit | 5df5ee8956c9613793908169676de0fb47582c71 (patch) | |
tree | a48346c4a0d1e6284ad916807030e288a6979577 /tools/h5repack/h5repack_list.c | |
parent | 4d8a0f4c54b95c5b865ebdee6e82cf42c7b44c5a (diff) | |
download | hdf5-5df5ee8956c9613793908169676de0fb47582c71.zip hdf5-5df5ee8956c9613793908169676de0fb47582c71.tar.gz hdf5-5df5ee8956c9613793908169676de0fb47582c71.tar.bz2 |
[svn-r12720]
added output of error messages using the tools library function error_msg, that prints the program name and error on the message
tested: kagiso
Diffstat (limited to 'tools/h5repack/h5repack_list.c')
-rw-r--r-- | tools/h5repack/h5repack_list.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_list.c b/tools/h5repack/h5repack_list.c index b414398..32cbc24 100644 --- a/tools/h5repack/h5repack_list.c +++ b/tools/h5repack/h5repack_list.c @@ -12,13 +12,14 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - #include <stdlib.h> #include <string.h> #include <stdio.h> #include "H5private.h" +#include "h5tools_utils.h" #include "h5repack.h" +extern char *progname; /*------------------------------------------------------------------------- * Function: check_objects @@ -83,7 +84,7 @@ int check_objects(const char* fname, /* the input object names are present in the file and are valid */ if (h5trav_getindext(name,travt)<0) { - printf("%sError: Could not find <%s> in file <%s>. Exiting...\n", + error_msg(progname, "%s Could not find <%s> in file <%s>. Exiting...\n", (options->verbose?"\n":""),name,fname); goto out; } |