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.
This commit is contained in:
Lennart Poettering
2015-09-30 22:26:16 +02:00
parent 0e05ee044a
commit 765d143b5f
5 changed files with 19 additions and 21 deletions
+1 -2
View File
@@ -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;
+1 -2
View File
@@ -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;