diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-15 23:10:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 23:10:21 (GMT) |
commit | 7a5f4f60c65a7c8323d2956de2a3fe1a0eacecee (patch) | |
tree | 8fc04384963fb3fa340cece650995289f919b345 | |
parent | 8e7ad5652647797025edf6f3912f29acfc6dae3e (diff) | |
download | hdf5-7a5f4f60c65a7c8323d2956de2a3fe1a0eacecee.zip hdf5-7a5f4f60c65a7c8323d2956de2a3fe1a0eacecee.tar.gz hdf5-7a5f4f60c65a7c8323d2956de2a3fe1a0eacecee.tar.bz2 |
GH issue #2538, print must have verbose on first (#2541)
-rw-r--r-- | tools/src/h5repack/h5repack.c | 10 |
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 |