Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The Ansi initialisation at the declaration of a struct impose that all values are...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 20 Oct 2006 13:32:52 +0000 (13:32 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 20 Oct 2006 13:32:52 +0000 (13:32 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2897 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/log.h

index d3c2d30..adb13a1 100644 (file)
@@ -314,11 +314,13 @@ extern xbt_log_appender_t xbt_log_default_appender;
  * Setting the LogEvent's valist member is done inside _log_logEvent.
  */
 
-#define _XBT_LOG_PRE(catv, priority) do {                              \
-     if (_XBT_LOG_ISENABLEDV(catv, priority)) {                        \
-         s_xbt_log_event_t _log_ev =                                   \
-             {&(catv),priority,__FILE__,_XBT_FUNCTION,__LINE__};         \
-         _xbt_log_event_log(&_log_ev
+#define _XBT_LOG_PRE(catv, priority) do {                       \
+     if (_XBT_LOG_ISENABLEDV(catv, priority)) {                  \
+         s_xbt_log_event_t _log_ev =                             \
+             {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__};    \
+                _log_ev.cat = &(catv);                           \
+              _xbt_log_event_log(&_log_ev                       \
+              
 
 #define _XBT_LOG_POST                          \
                         );                      \