chiark / gitweb /
cgroup: correct the log information
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 13 Sep 2013 03:17:06 +0000 (11:17 +0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Sep 2013 12:32:14 +0000 (14:32 +0200)
it should be memory.soft_limit_in_bytes.

src/core/cgroup.c

index fba0b2f..aee93ba 100644 (file)
@@ -266,7 +266,7 @@ void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const cha
                 sprintf(buf, "%" PRIu64 "\n", c->memory_soft_limit);
                 r = cg_set_attribute("memory", path, "memory.soft_limit_in_bytes", buf);
                 if (r < 0)
-                        log_error("Failed to set memory.limit_in_bytes on %s: %s", path, strerror(-r));
+                        log_error("Failed to set memory.soft_limit_in_bytes on %s: %s", path, strerror(-r));
         }
 
         if (mask & CGROUP_DEVICE) {