summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-03-13 21:23:33 (GMT)
committerGitHub <noreply@github.com>2023-03-13 21:23:33 (GMT)
commit42d1e89755bafe543e5d8262e2e9640fb2b8103d (patch)
treee87d74c021766c237b83502d1131be6c93289a19 /tools
parentd2345e9f0cb2ca6a8b6268116eed35647cfebf61 (diff)
downloadhdf5-42d1e89755bafe543e5d8262e2e9640fb2b8103d.zip
hdf5-42d1e89755bafe543e5d8262e2e9640fb2b8103d.tar.gz
hdf5-42d1e89755bafe543e5d8262e2e9640fb2b8103d.tar.bz2
GH issue #1142, print must have verbose on first (#2540)
Diffstat (limited to 'tools')
-rw-r--r--tools/src/h5repack/h5repack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/src/h5repack/h5repack.c b/tools/src/h5repack/h5repack.c
index 21a5883..c58943b 100644
--- a/tools/src/h5repack/h5repack.c
+++ b/tools/src/h5repack/h5repack.c
@@ -530,10 +530,12 @@ copy_attr(hid_t loc_in, hid_t loc_out, named_dt_t **named_dt_head_p, trav_table_
buf = NULL;
} /*H5T_REFERENCE*/
- if (options->verbose == 2)
- HDprintf(FORMAT_OBJ_ATTR_TIME, "attr", read_time, write_time, name);
- else
- HDprintf(FORMAT_OBJ_ATTR, "attr", name);
+ if (options->verbose > 0) {
+ if (options->verbose == 2)
+ HDprintf(FORMAT_OBJ_ATTR_TIME, "attr", read_time, write_time, name);
+ else
+ HDprintf(FORMAT_OBJ_ATTR, "attr", name);
+ }
/*---------------------------------------------------------------------
* close