diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2007-05-24 19:09:36 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2007-05-24 19:09:36 (GMT) |
commit | bd2c3b52a8acf822d8cb97a365425b2c18dc0621 (patch) | |
tree | 9e17846904fd2eb2b64f3459f9aae789160b4626 /tools/h5repack/h5repack_filters.c | |
parent | fa133cfb95c052f3b96b0a5089b98491b77628ef (diff) | |
download | hdf5-bd2c3b52a8acf822d8cb97a365425b2c18dc0621.zip hdf5-bd2c3b52a8acf822d8cb97a365425b2c18dc0621.tar.gz hdf5-bd2c3b52a8acf822d8cb97a365425b2c18dc0621.tar.bz2 |
[svn-r13810]
Minor tunings to output verbose messages:
1)when there is not a filter request do not print a message saying the filter was not apllied when the dataset was too small
2) avoid printing the message that has a list of objects to modify when there is none
Tested:linux
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index 32b2e36..a2d86fa 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -28,7 +28,7 @@ static int aux_find_obj(const char* name, /* object name from traverse list */ pack_opt_t *options, /* repack options */ - pack_info_t *obj /*OUT*/) /* info about object to filter */ + pack_info_t *obj /*OUT*/) /* info about object to filter */ { char *pdest; int result; @@ -187,17 +187,23 @@ int aux_assign_obj(const char* name, /* object name from traverse lis * *------------------------------------------------------------------------- */ + int apply_filters(const char* name, /* object name from traverse list */ int rank, /* rank of dataset */ hsize_t *dims, /* dimensions of dataset */ - hid_t dcpl_id, /* dataset creation property list */ - pack_opt_t *options) /* repack options */ + hid_t dcpl_id, /* (IN,OUT) dataset creation property list */ + pack_opt_t *options, /* repack options */ + int *has_filter) /* (OUT) object NAME has a filter */ + + { int nfilters; /* number of filters in DCPL */ hsize_t chsize[64]; /* chunk size in elements */ H5D_layout_t layout; int i; pack_info_t obj; + + *has_filter = 0; if (rank==0) /* scalar dataset, do not apply */ return 0; @@ -225,7 +231,9 @@ int apply_filters(const char* name, /* object name from traverse list */ * only remove if we are inserting new ones *------------------------------------------------------------------------- */ - if (nfilters && obj.nfilters ) { + if (nfilters && obj.nfilters ) + { + *has_filter = 1; if (H5Premove_filter(dcpl_id,H5Z_FILTER_ALL)<0) return -1; } |