+/* only used after the format using: we suppose that the buffer is big enough to display our data */
+#define check_overflow \
+ if (p-ev->buffer > XBT_LOG_BUFF_SIZE) { /* buffer overflow */ \
+ p=ev->buffer + XBT_LOG_BUFF_SIZE - strlen(" >> OUTPUT TRUNCATED <<\n"); \
+ p+=sprintf(p," >> OUTPUT TRUNCATED <<\n"); \
+ }