chiark / gitweb /
cgroup: correct the log information
[elogind.git] / src / core / cgroup.c
index fba0b2f9de588277df07b482e323a36c044ae177..aee93ba0a8b214ef750359a660a5cbe6ecfd706b 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)
                 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) {
         }
 
         if (mask & CGROUP_DEVICE) {