From 65a36c8ffd483e56feb42eef2beab7dadb7938c3 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 21 May 2014 10:32:08 +0200 Subject: [PATCH] When the parameter parser is jammed, display the full parsed string --- src/xbt/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xbt/log.c b/src/xbt/log.c index 717e180475..83acbfde9c 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -1071,7 +1071,7 @@ void xbt_log_threshold_set(xbt_log_category_t cat, static xbt_log_setting_t _xbt_log_parse_setting(const char *control_string) { - + const char *orig_control_string = control_string; xbt_log_setting_t set = xbt_new(s_xbt_log_setting_t, 1); const char *name, *dot, *eq; @@ -1094,7 +1094,7 @@ static xbt_log_setting_t _xbt_log_parse_setting(const char *control_string) control_string += strcspn(control_string, " "); xbt_assert(*dot == '.' && (*eq == '=' || *eq == ':'), - "Invalid control string '%s'", control_string); + "Invalid control string '%s'", orig_control_string); if (!strncmp(dot + 1, "threshold", (size_t) (eq - dot - 1))) { int i; -- 2.20.1