summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-03-14 01:36:43 (GMT)
committerGitHub <noreply@github.com>2023-03-14 01:36:43 (GMT)
commit1e8ce8767a991f269eb5101fbee700db03b09398 (patch)
tree7788c70b20388722c16d950e33d41677fa6cdef6
parente0a981dd3fa3f148ec6ea86aefc7af0df2e9f3c6 (diff)
downloadhdf5-1e8ce8767a991f269eb5101fbee700db03b09398.zip
hdf5-1e8ce8767a991f269eb5101fbee700db03b09398.tar.gz
hdf5-1e8ce8767a991f269eb5101fbee700db03b09398.tar.bz2
GH issue #2538, print must have verbose on first (#2542)
-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 8430400..010883a 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