diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-12-09 11:18:39 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-12-09 11:18:39 +0000 |
commit | 96ee38b048031ceefcd8eb169fc1c4bd2bee2eb7 (patch) | |
tree | 578d985f59883daac59438952e572519e1db56df /cgconfig.c | |
parent | 50dce522e4a5a09d43012b1d3d18ac80a5c16863 (diff) | |
download | libcg-96ee38b048031ceefcd8eb169fc1c4bd2bee2eb7.tar.gz libcg-96ee38b048031ceefcd8eb169fc1c4bd2bee2eb7.tar.xz libcg-96ee38b048031ceefcd8eb169fc1c4bd2bee2eb7.zip |
libcgroup: Better error reporting for libcgroup
From: Ankita Garg <ankita@in.ibm.com>
This patch adds human readable error messages to the configuration parser.
The error lookup is implemented as a simple table, indexed by the error.
TODO: Save errno at ECGOTHER and pass it down as cgroup_lasterror.
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Ankita Garg <ankita@in.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@228 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'cgconfig.c')
-rw-r--r-- | cgconfig.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -61,8 +61,7 @@ int main(int argc, char *argv[]) if (ret) { printf("Loading configuration file %s " "failed, error: %s\n", filename, - strerror(errno)); - printf("return code = %d\n", ret); + cgroup_strerror(ret)); exit(3); } return 0; |