diff options
-rw-r--r-- | src/H5Dmpio.c | 5 |
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 |