On 08/17/2010 04:33 PM, Balbir Singh wrote: > * Ivana Varekova<[email protected]> [2010-08-17 14:33:21]: > > >> This patch changes the return value for nonexisting variable name - >> the previous error message: >> # /sbin/cgconfigparser -l /tmp/cg2 >> Loading configuration file /tmp/cg2 failed >> Cgroup values are not equal >> >> the new error message >> # /sbin/cgconfigparser -l /tmp/cg2 >> can't create group "CBSFxx/Zcz6": Loading configuration file >> /etc/cgconfig.conf failed >> Cgroup values are not equal >> >> >> Signed-off-by: Ivana Hutarova Varekova<[email protected]> >> --- >> >> src/config.c | 5 ++++- >> 1 files changed, 4 insertions(+), 1 deletions(-) >> >> diff --git a/src/config.c b/src/config.c >> index a29649a..33968eb 100644 >> --- a/src/config.c >> +++ b/src/config.c >> @@ -454,8 +454,11 @@ static int cgroup_config_create_groups(void) >> error = cgroup_create_cgroup(cgroup, 0); >> cgroup_dbg("creating group %s, error %d\n", cgroup->name, >> error); >> - if (error) >> + if (error) { >> + fprintf(stderr, "can't create group \"%s\": ", >> + cgroup->name); >> return error; >> + } >> } >> return error; >> } >> >> > I agree with Jan's comment earlier, we might need more debugging > around that. > > Acked-by: Balbir Singh<[email protected]> > > > Hello, I just sent th epatch which fixes the number of error code which is returned in this case so the result error message is more informative. Ivana
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
