summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-30 20:16:51 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-30 22:26:16 +0200
commit765d143b5fc8dcb44f5fbd391ef36d0835793e7c (patch)
tree0fadb3d03d0b7a99412cff9a542f16a66950b5f8 /src/core
parent0e05ee044a6e23745bb8906ad91ec7b97c37dbac (diff)
util: rename parse_cpu_set() to parse_cpu_set_and_warn()
It's pretty untypical for our parsing functions to log on their own. Clarify in the name that this one does.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/load-fragment.c3
-rw-r--r--src/core/main.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 7d6d46b904..2d73ef49c8 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -860,8 +860,7 @@ int config_parse_exec_cpu_affinity(const char *unit,
assert(rvalue);
assert(data);
- ncpus = parse_cpu_set(rvalue, &cpuset, unit, filename, line, lvalue);
-
+ ncpus = parse_cpu_set_and_warn(rvalue, &cpuset, unit, filename, line, lvalue);
if (ncpus < 0)
return ncpus;
diff --git a/src/core/main.c b/src/core/main.c
index a244cbb3d5..ee6576fb35 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -464,8 +464,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;