summaryrefslogtreecommitdiffstats
path: root/cgconfig.c
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-16 13:34:12 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-16 13:34:12 +0000
commitdedcfa480ee21b9bb87964eb1e2665fe6a200b4c (patch)
tree61e4516a1f28071d8cb6604f8adb330eb598d3a0 /cgconfig.c
parentb4ca5d9b4a38994aa71fbdb14fd5d65c81bf5216 (diff)
downloadlibcg-dedcfa480ee21b9bb87964eb1e2665fe6a200b4c.tar.gz
libcg-dedcfa480ee21b9bb87964eb1e2665fe6a200b4c.tar.xz
libcg-dedcfa480ee21b9bb87964eb1e2665fe6a200b4c.zip
This patch store the last errno value to last_errno value and add
cgroup_add_last_errno procedure to show this number. Use this procedure to show the cause of the error when ECGOTHER is returned. [balbir@linux.vnet.ibm.com: fix last_errno in config.c] Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@329 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'cgconfig.c')
-rw-r--r--cgconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgconfig.c b/cgconfig.c
index 043678a..cc33ad9 100644
--- a/cgconfig.c
+++ b/cgconfig.c
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
ret = cgroup_config_load_config(filename);
if (ret) {
printf("Loading configuration file %s "
- "failed, error: %s\n", filename,
+ "failed\n%s\n", filename,
cgroup_strerror(ret));
exit(3);
}