X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/999a64fe86043f1b9cc777db6a5cdc4e34c4c922..07c319ec54d6fc778ee3cc5e75a747242006723e:/src/xbt/xbt_log_layout_format.c diff --git a/src/xbt/xbt_log_layout_format.c b/src/xbt/xbt_log_layout_format.c index 3ab06fe07b..f7ca02d260 100644 --- a/src/xbt/xbt_log_layout_format.c +++ b/src/xbt/xbt_log_layout_format.c @@ -23,14 +23,14 @@ static double format_begin_of_time = -1; if (precision == -1 && length == -1) { \ tmp = bprintf("%" letter, data); \ } else if (precision == -1) { \ - sprintf(tmpfmt,"%% %d" letter,length); \ + sprintf(tmpfmt,"%%%d" letter,length); \ tmp = bprintf(tmpfmt, data); \ length = -1; \ } else if (length == -1) { \ tmp = bprintf("%.*" letter, precision, data);\ precision = -1; \ } else { \ - sprintf(tmpfmt,"%% %d.*" letter,length); \ + sprintf(tmpfmt,"%%%d.*" letter,length); \ tmp = bprintf(tmpfmt, precision, data); \ length = precision = -1; \ } \ @@ -214,7 +214,7 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l, if (precision == -1 && length == -1) { \ p += snprintf(p, XBT_LOG_BUFF_SIZE - (p - ev->buffer), "%" letter, data); \ } else if (precision == -1) { \ - sprintf(tmpfmt,"%% %d" letter,length); \ + sprintf(tmpfmt,"%%%d" letter,length); \ p += snprintf(p, XBT_LOG_BUFF_SIZE - (p - ev->buffer), tmpfmt, data); \ length = -1; \ } else if (length == -1) { \ @@ -223,7 +223,7 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l, data);\ precision = -1; \ } else { \ - sprintf(tmpfmt,"%% %d.%d" letter,length, \ + sprintf(tmpfmt,"%%%d.%d" letter,length, \ (int) MIN(XBT_LOG_BUFF_SIZE - (p - ev->buffer), precision));\ p += sprintf(p, tmpfmt, data);\ length = precision = -1; \