From 1029e34fb95f58b193476291453f80a5ca697a2c Mon Sep 17 00:00:00 2001 From: jhendersonHDF Date: Sat, 16 Mar 2024 11:42:01 -0500 Subject: Suppress H5Dmpio debugging output unless HDF5_DEBUG=d is set (#4155) --- src/H5Dmpio.c | 5 +++-- 1 file 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 -- cgit v0.12