X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..174ff5d9a704689bdbeb8aaabe4557bcd96841c4:/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 030a17b55f..f6a09be31c 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -46,7 +46,7 @@ static void xbt_log_layout_simple_dynamic(xbt_log_layout_t l, xbt_strbuff_append(buff, loc_buff); - vasprintf(&p, fmt, ev->ap_copy); + p = bvprintf(fmt, ev->ap_copy); xbt_strbuff_append(buff, p); free(p); @@ -71,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);