]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: bus_append_unit_property_assignment() was using the wrong parse function
authorTejun Heo <htejun@fb.com>
Sat, 30 Apr 2016 20:12:54 +0000 (16:12 -0400)
committerTejun Heo <tj@kernel.org>
Sat, 30 Apr 2016 20:12:54 +0000 (16:12 -0400)
It was incorrectly using cg_cpu_weight_parse() to parse BlockIOWeight.  Update
it to use cg_blkio_weight_parse() instead.

Signed-off-by: Tejun Heo <htejun@fb.com>
src/shared/bus-unit-util.c

index 2b755cea28bc390981454158f903106446c3fe8e..e36a7741a8c8d21021b763c1992634e6b42b9da3 100644 (file)
@@ -210,7 +210,7 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
         } else if (STR_IN_SET(field, "BlockIOWeight", "StartupBlockIOWeight")) {
                 uint64_t u;
 
-                r = cg_cpu_shares_parse(eq, &u);
+                r = cg_blkio_weight_parse(eq, &u);
                 if (r < 0) {
                         log_error("Failed to parse %s value %s.", field, eq);
                         return -EINVAL;