summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2024-03-16 16:42:01 (GMT)
committerGitHub <noreply@github.com>2024-03-16 16:42:01 (GMT)
commit1029e34fb95f58b193476291453f80a5ca697a2c (patch)
tree639c99910084c0b840d79b3c41b9b494e87079f9
parent4b0c6291f8f8bb0870000ff23787fd07a9390df4 (diff)
downloadhdf5-1029e34fb95f58b193476291453f80a5ca697a2c.zip
hdf5-1029e34fb95f58b193476291453f80a5ca697a2c.tar.gz
hdf5-1029e34fb95f58b193476291453f80a5ca697a2c.tar.bz2
Suppress H5Dmpio debugging output unless HDF5_DEBUG=d is set (#4155)
-rw-r--r--src/H5Dmpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 7d8ba21..338da02 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -613,7 +613,8 @@ H5D__mpio_debug_init(void)
if (debug_str)
H5D__mpio_parse_debug_str(debug_str);
- debug_stream = stdout;
+ if (H5DEBUG(D))
+ debug_stream = stdout;
H5D_mpio_debug_inited = true;
@@ -1410,7 +1411,7 @@ done:
fprintf(debug_log_file, "##############\n\n");
if (EOF == fclose(debug_log_file))
HDONE_ERROR(H5E_IO, H5E_CLOSEERROR, FAIL, "couldn't close debugging log file");
- debug_stream = stdout;
+ debug_stream = H5DEBUG(D) ? stdout : NULL;
}
#endif