]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Fix error text on failed reading of parameter.
authorJan Safranek <jsafrane@redhat.com>
Tue, 22 Dec 2009 08:16:45 +0000 (09:16 +0100)
committerJan Safranek <jsafrane@redhat.com>
Tue, 22 Dec 2009 08:16:45 +0000 (09:16 +0100)
ECGROUPVALUENOTEXIST is translated by cgroup_strerr to "Cgroup trying to set
value for control that does not exist". This is wrong, because the error
code is being returned also when *reading* non-existing value,

I propose "Cgroup, requested group parameter does not exist".

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/api.c

index 37b5885797c10ab2a0d3f78011dc666c258be7b1..8cb3dcc6e3a4e9577323517d6c8590034efa9739 100644 (file)
--- a/src/api.c
+++ b/src/api.c
@@ -98,7 +98,7 @@ char *cgroup_strerror_codes[] = {
        "Cgroup, creation of controller failed",
        "Cgroup operation failed",
        "Cgroup not initialized",
-       "Cgroup trying to set value for control that does not exist",
+       "Cgroup, requested group parameter does not exist",
        "Cgroup generic error",
        "Cgroup values are not equal",
        "Cgroup controllers are different",