From 3302686f8952854a69b0328f0efa3148d64548b2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 28 Jul 2011 12:41:15 +0200 Subject: [PATCH] On win64 we must use XBT_LOG_MAYDAY. --- include/xbt/log.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/xbt/log.h b/include/xbt/log.h index 790295e941..8ffe99f9c2 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -27,8 +27,12 @@ /* XBT_LOG_MAYDAY: define this to replace the logging facilities with basic printf function. Useful to debug the logging facilities themselves */ +#include "gras_config.h" #undef XBT_LOG_MAYDAY //#define XBT_LOG_MAYDAY +#ifdef _WIN64 + #define XBT_LOG_MAYDAY +#endif #ifndef _XBT_LOG_H_ #define _XBT_LOG_H_ @@ -405,9 +409,9 @@ extern xbt_log_layout_t xbt_log_default_layout; # define XBT_CLOG(cat, prio, ...) \ _XBT_IF_ONE_ARG(_XBT_CLOG_ARG1, _XBT_CLOG_ARGN, __VA_ARGS__)(__VA_ARGS__) # define _XBT_CLOG_ARG1(f) \ - fprintf(stderr,"%s:%d:" f, __FILE__, __LINE__) + fprintf(stderr,"%s:%d:\n" f, __FILE__, __LINE__) # define _XBT_CLOG_ARGN(f, ...) \ - fprintf(stderr,"%s:%d:" f, __FILE__, __LINE__, __VA_ARGS__) + fprintf(stderr,"%s:%d:\n" f, __FILE__, __LINE__, __VA_ARGS__) # define XBT_LOG(...) XBT_CLOG(0, __VA_ARGS__) #else # define XBT_CLOG_(catv, prio, ...) \ -- 2.20.1