From: Arnaud Giersch Date: Tue, 23 Oct 2012 13:44:01 +0000 (+0200) Subject: Cannot use xbt_die when log layout format contains errors, since it uses log facilities. X-Git-Tag: v3_8~24^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4739a97335349653405f0fad6a0423dd320a596a?hp=edadbdfac4149ed38701fffdec3a3f3d4afe2ad4 Cannot use xbt_die when log layout format contains errors, since it uses log facilities. Use fprintf(stderr) instead, then abort. --- diff --git a/src/xbt/xbt_log_layout_format.c b/src/xbt/xbt_log_layout_format.c index 9fe811b881..e19302c788 100644 --- a/src/xbt/xbt_log_layout_format.c +++ b/src/xbt/xbt_log_layout_format.c @@ -88,7 +88,8 @@ static int xbt_log_layout_format_doit(xbt_log_layout_t l, handle_modifier: switch (*q) { case '\0': - xbt_die("Layout format (%s) ending with %%\n", (char *)l->data); + fprintf(stderr, "Layout format (%s) ending with %%\n", (char *)l->data); + xbt_abort(); case '%': *p = '%'; check_overflow(1); @@ -196,7 +197,8 @@ static int xbt_log_layout_format_doit(xbt_log_layout_t l, break; } default: - xbt_die(ERRMSG, *q, (char *)l->data); + fprintf(stderr, ERRMSG, *q, (char *)l->data); + xbt_abort(); } } else { *p = *q;