From: Balbir Singh Date: Tue, 3 Feb 2009 10:26:01 +0000 (+0000) Subject: The previous patch is split so the second part of the patch: X-Git-Tag: v0.34~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9c9a343da08daf4a1694809247b6dc9d4533c29;p=thirdparty%2Flibcgroup.git The previous patch is split so the second part of the patch: This part change error messages - to dbg info messages - the data from error messages are now printed in main procedure Signed-off-by: Ivana Varekova git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@316 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- diff --git a/cgclassify.c b/cgclassify.c index 556ed3ff..c41f5298 100644 --- a/cgclassify.c +++ b/cgclassify.c @@ -44,7 +44,7 @@ int euid_of_pid(pid_t pid) sprintf(path, "/proc/%d/status", pid); fp = fopen(path, "r"); if (!fp) { - fprintf(stderr, "Error in opening file %s:%s\n", path, + dbg("Error in opening file %s:%s\n", path, strerror(errno)); return -1; } @@ -79,7 +79,7 @@ int egid_of_pid(pid_t pid) sprintf(path, "/proc/%d/status", pid); fp = fopen(path, "r"); if (!fp) { - fprintf(stderr, "Error in opening file %s:%s\n", path, + dbg("Error in opening file %s:%s\n", path, strerror(errno)); return -1; }