From 4739a97335349653405f0fad6a0423dd320a596a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 23 Oct 2012 15:44:01 +0200 Subject: [PATCH] Cannot use xbt_die when log layout format contains errors, since it uses log facilities. Use fprintf(stderr) instead, then abort. --- src/xbt/xbt_log_layout_format.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.20.1