Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix supernovae compilation
[simgrid.git] / src / xbt / xbt_log_layout_simple.c
index 030a17b..f6a09be 100644 (file)
@@ -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);