[Darshan-commits] [Git][darshan/darshan][master] include variadic args in calls to DARSHAN_WARN

Shane Snyder xgitlab at cels.anl.gov
Fri Jan 24 15:43:44 CST 2020



Shane Snyder pushed to branch master at darshan / darshan


Commits:
733cac5d by Shane Snyder at 2020-01-24T21:42:49Z
include variadic args in calls to DARSHAN_WARN

>From Francois Trahay

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-core.c


Changes:

=====================================
darshan-runtime/lib/darshan-core.c
=====================================
@@ -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); \
     if(__ret != 0) { \
         if(my_rank == 0) { \
-            DARSHAN_WARN(__err_str); \
+            DARSHAN_WARN(__err_str, ## __VA_ARGS__); \
             if(log_created) \
                 unlink(logfile_name); \
         } \
@@ -184,7 +184,7 @@ static double darshan_core_wtime_absolute(void);
 /* Non-MPI variant of darshan logging helpers */
 #define DARSHAN_CHECK_ERR(__ret, __err_str, ...) do { \
     if(__ret != 0) { \
-        DARSHAN_WARN(__err_str); \
+        DARSHAN_WARN(__err_str, ## __VA_ARGS__); \
         if(log_created) \
             unlink(logfile_name); \
         goto exit; \



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/733cac5d4597128584321ccc2d43f7643bfd2ea4

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/733cac5d4597128584321ccc2d43f7643bfd2ea4
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20200124/e0114e80/attachment-0001.html>


More information about the Darshan-commits mailing list