diff options
author | Daniel Mack <github@zonque.org> | 2015-10-01 09:46:09 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-01 09:46:09 +0200 |
commit | 47c67a5042968163dae8d4e4d160232800843e55 (patch) | |
tree | 8b30347368544961ff6e08d4330fa014b5e43cfc /src/core/main.c | |
parent | 8abf5291564e771bfc62c74a55ab3f3b56f45257 (diff) | |
parent | 5c22925a5713ad6f62d89ef478b82e571e9ba688 (diff) |
Merge pull request #1426 from poettering/log-syntax
logging fixes and more
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/main.c b/src/core/main.c index bac2043281..2406832694 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -47,6 +47,7 @@ #include "capability.h" #include "clock-util.h" #include "conf-parser.h" +#include "cpu-set-util.h" #include "dbus-manager.h" #include "def.h" #include "env-util.h" @@ -464,8 +465,7 @@ static int config_parse_cpu_affinity2( _cleanup_cpu_free_ cpu_set_t *c = NULL; int ncpus; - ncpus = parse_cpu_set(rvalue, &c, unit, filename, line, lvalue); - + ncpus = parse_cpu_set_and_warn(rvalue, &c, unit, filename, line, lvalue); if (ncpus < 0) return ncpus; @@ -497,8 +497,7 @@ static int config_parse_show_status( k = parse_show_status(rvalue, b); if (k < 0) { - log_syntax(unit, LOG_ERR, filename, line, -k, - "Failed to parse show status setting, ignoring: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, k, "Failed to parse show status setting, ignoring: %s", rvalue); return 0; } @@ -629,8 +628,7 @@ static int config_parse_join_controllers(const char *unit, } } if (!isempty(rvalue)) - log_syntax(unit, LOG_ERR, filename, line, EINVAL, - "Trailing garbage, ignoring."); + log_syntax(unit, LOG_ERR, filename, line, 0, "Trailing garbage, ignoring."); return 0; } |