X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b28daccf7142bd4b00e9eee1cd63daa90ae4ad9..b71f4fef475d61e6b5e954588e09c9a926963d01:/src/xbt/xbt_log_layout_simple.c diff --git a/src/xbt/xbt_log_layout_simple.c b/src/xbt/xbt_log_layout_simple.c index ddb77e929b..f6a09be31c 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -46,8 +46,7 @@ static void xbt_log_layout_simple_dynamic(xbt_log_layout_t l, xbt_strbuff_append(buff, loc_buff); - if (vasprintf(&p, fmt, ev->ap_copy) == -1) - xbt_die("vasprintf failed"); + p = bvprintf(fmt, ev->ap_copy); xbt_strbuff_append(buff, p); free(p); @@ -72,9 +71,9 @@ static void xbt_log_layout_simple_doit(xbt_log_layout_t l, { char *p; const char *procname = NULL; - xbt_assert0(ev->priority >= 0, + xbt_assert(ev->priority >= 0, "Negative logging priority naturally forbidden"); - xbt_assert1(ev->priority < sizeof(xbt_log_priority_names), + xbt_assert(ev->priority < sizeof(xbt_log_priority_names), "Priority %d is greater than the biggest allowed value", ev->priority);