diff options
author | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 11:10:09 -0700 |
---|---|---|
committer | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 11:10:09 -0700 |
commit | 5cc623e644852923def55962d2ee92333af8ead7 (patch) | |
tree | 9d5b0a683607b27cd3b40896f8d0682bf32dcd7d | |
parent | 4b40bc38b495bb0c986e7accf5897b164ccfee4d (diff) |
core: Log parse errors in config_parse_cpu_affinity2
-rw-r--r-- | src/core/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c index 539c57a7b8..8878ddc85d 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -433,6 +433,7 @@ static int config_parse_cpu_affinity2( void *data, void *userdata) { + const char *whole_rvalue = rvalue; _cleanup_cpu_free_ cpu_set_t *c = NULL; unsigned ncpus = 0; @@ -446,8 +447,10 @@ static int config_parse_cpu_affinity2( 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; |