Commit 603d4e0d authored by Philip Carns's avatar Philip Carns

only print log file open warning on rank 0


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@425 3b7491f3-a168-0410-bf4b-c445ed680a29
parent ab74ecf7
......@@ -1834,7 +1834,10 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
if(ret != MPI_SUCCESS)
{
/* TODO: keep this print or not? */
fprintf(stderr, "darshan library warning: unable to open log file %s\n", logfile_name);
if(rank == 0)
{
fprintf(stderr, "darshan library warning: unable to open log file %s\n", logfile_name);
}
if(count > 0)
DARSHAN_MPI_CALL(PMPI_Type_free)(&mtype);
return(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment