Commit 733cac5d authored by Shane Snyder's avatar Shane Snyder
Browse files

include variadic args in calls to DARSHAN_WARN

From Francois Trahay
parent 28fcd92f
...@@ -171,7 +171,7 @@ static double darshan_core_wtime_absolute(void); ...@@ -171,7 +171,7 @@ static double darshan_core_wtime_absolute(void);
PMPI_Allreduce(MPI_IN_PLACE, &__ret, 1, MPI_INT, MPI_LOR, final_core->mpi_comm); \ PMPI_Allreduce(MPI_IN_PLACE, &__ret, 1, MPI_INT, MPI_LOR, final_core->mpi_comm); \
if(__ret != 0) { \ if(__ret != 0) { \
if(my_rank == 0) { \ if(my_rank == 0) { \
DARSHAN_WARN(__err_str); \ DARSHAN_WARN(__err_str, ## __VA_ARGS__); \
if(log_created) \ if(log_created) \
unlink(logfile_name); \ unlink(logfile_name); \
} \ } \
...@@ -184,7 +184,7 @@ static double darshan_core_wtime_absolute(void); ...@@ -184,7 +184,7 @@ static double darshan_core_wtime_absolute(void);
/* Non-MPI variant of darshan logging helpers */ /* Non-MPI variant of darshan logging helpers */
#define DARSHAN_CHECK_ERR(__ret, __err_str, ...) do { \ #define DARSHAN_CHECK_ERR(__ret, __err_str, ...) do { \
if(__ret != 0) { \ if(__ret != 0) { \
DARSHAN_WARN(__err_str); \ DARSHAN_WARN(__err_str, ## __VA_ARGS__); \
if(log_created) \ if(log_created) \
unlink(logfile_name); \ unlink(logfile_name); \
goto exit; \ goto exit; \
......
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