X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/057f189342acabd431a079455e0800d1abcd8057..1a39cc6fdc908c33507b5b0f8bae61f7286fd4ca:/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 22a7cca70e..5eba2b80b6 100644 --- a/src/xbt/xbt_log_layout_format.c +++ b/src/xbt/xbt_log_layout_format.c @@ -56,7 +56,6 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l, char *q = l->data; char *tmp; char *tmp2; - int vres; /* shut gcc up, but ignored */ while (*q != '\0') { if (*q == '%') { @@ -150,7 +149,7 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l, break; case 'm': /* user-provided message; LOG4J compliant */ - vres = vasprintf(&tmp2, fmt, ev->ap_copy); + tmp2 = bvprintf(fmt, ev->ap_copy); append1("%s", "%.*s", tmp2); free(tmp2); break;