Fix of cgexec error handling - with this patch cgexec return the right error message - not only cg internal error value
re-generated Signed-off-by: Ivana Varekova <[email protected]> Acked-by: Dhaval Giani <[email protected]> --- src/tools/cgexec.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/tools/cgexec.c b/src/tools/cgexec.c index 167d873..0853894 100644 --- a/src/tools/cgexec.c +++ b/src/tools/cgexec.c @@ -76,7 +76,8 @@ int main(int argc, char *argv[]) /* Initialize libcg */ ret = cgroup_init(); if (ret) { - fprintf(stderr, "libcgroup initialization failed:%d", ret); + fprintf(stderr, "libcgroup initialization failed: %s\n", + cgroup_strerror(ret)); return ret; } ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
