summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-13 19:09:41 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-13 19:09:41 (GMT)
commitbc6ab7c0a6ff27d3d52707419385ccd0771ffa0c (patch)
treee21b848fed677413addbdf6bee7fd2240c66c577 /tools/lib
parent803bb3e532c0c2ff26f6b7cc115a8c6f33ea00f5 (diff)
downloadhdf5-bc6ab7c0a6ff27d3d52707419385ccd0771ffa0c.zip
hdf5-bc6ab7c0a6ff27d3d52707419385ccd0771ffa0c.tar.gz
hdf5-bc6ab7c0a6ff27d3d52707419385ccd0771ffa0c.tar.bz2
[svn-r8869] Purpose:
h5repack changes Description: there were some requests to change some minor h5repack features h5repack only made a warning about a non available filter in verbose mode ( -v ) without -v it kept silent, and users sometimes missed this warning the request was that it should print this warning always. so, the new format, is e.g ./h5repack -i test_szip.h5 -o out.h5 Warning: dataset </dset_szip> cannot be read, SZIP filter is not available due to this, and to avoid a lot of these messages in the shell test script, I modified the script h5repack.sh so that it detects the presence of all filters in the environment (previously it only detected SZIP) the test files were also divided in more files , to make the script code easier to follow Solution: Platforms tested: linux AIX (no szip) solaris (no szip, no gzip ) Misc. update:
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_filters.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/lib/h5tools_filters.c b/tools/lib/h5tools_filters.c
index 153c832..5315fd4 100644
--- a/tools/lib/h5tools_filters.c
+++ b/tools/lib/h5tools_filters.c
@@ -23,7 +23,7 @@
*/
static void print_warning(const char *dname, const char *fname)
{
- printf("Warning: dataset <%s> cannot be read, %s filter is not available\n",
+ fprintf(stderr,"Warning: dataset <%s> cannot be read, %s filter is not available\n",
dname,fname);
}
@@ -88,7 +88,14 @@ int h5tools_canreadf(const char* name, /* object name, serves also as boolean pr
switch (filtn)
{
+/*-------------------------------------------------------------------------
+ * user defined filter
+ *-------------------------------------------------------------------------
+ */
default:
+ if (name)
+ print_warning(name,"user defined");
+ return 0;
break;
/*-------------------------------------------------------------------------
* H5Z_FILTER_DEFLATE 1 , deflation like gzip