Skip to content

Commit

Permalink
Suppress H5Dmpio debugging output unless HDF5_DEBUG=d is set (#4155)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF authored Mar 16, 2024
1 parent 4b0c629 commit 1029e34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/H5Dmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -1410,7 +1411,7 @@ H5D__piece_io(H5D_io_info_t *io_info)
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

Expand Down

0 comments on commit 1029e34

Please sign in to comment.