A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When the parameter parser is jammed, display the full parsed string
[simgrid.git]
/
src
/
xbt
/
log.c
diff --git
a/src/xbt/log.c
b/src/xbt/log.c
index
717e180
..
83acbfd
100644
(file)
--- 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)
{
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;
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 == ':'),
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;
if (!strncmp(dot + 1, "threshold", (size_t) (eq - dot - 1))) {
int i;