projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ebeb4
)
core: Log parse errors in config_parse_join_controllers
author
Filipe Brandenburger
<filbranden@google.com>
Tue, 1 Sep 2015 15:30:26 +0000
(08:30 -0700)
committer
Filipe Brandenburger
<filbranden@google.com>
Tue, 1 Sep 2015 15:35:54 +0000
(08:35 -0700)
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
e5d9ec1
..
c6d2838
100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-538,6
+538,7
@@
static int config_parse_join_controllers(const char *unit,
void *data,
void *userdata) {
+ const char *whole_rvalue = rvalue;
unsigned n = 0;
assert(filename);
@@
-552,8
+553,10
@@
static int config_parse_join_controllers(const char *unit,
int r;
r = extract_first_word(&rvalue, &word, WHITESPACE, EXTRACT_QUOTES);
- if (r < 0)
+ if (r < 0) {
+ log_syntax(unit, LOG_ERR, filename, line, r, "Invalid value for %s: %s", lvalue, whole_rvalue);
return r;
+ }
if (r == 0)
break;