diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-14 22:11:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 22:11:29 (GMT) |
commit | 06e5da629a2d8684aabce03cf87f837923064d25 (patch) | |
tree | e961ac142c7912f8e0336b76868abd4f288abd10 /tools | |
parent | 066536a56fdfe2eecc7384549dbdfe839bf9160d (diff) | |
download | hdf5-06e5da629a2d8684aabce03cf87f837923064d25.zip hdf5-06e5da629a2d8684aabce03cf87f837923064d25.tar.gz hdf5-06e5da629a2d8684aabce03cf87f837923064d25.tar.bz2 |
GH issue #2538, print must have verbose on first (#2543)
Diffstat (limited to 'tools')
-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 ab5cf40..7dfd70b 100644 --- a/tools/src/h5repack/h5repack.c +++ b/tools/src/h5repack/h5repack.c @@ -520,10 +520,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 |