From b9c9a343da08daf4a1694809247b6dc9d4533c29 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Tue, 3 Feb 2009 10:26:01 +0000 Subject: [PATCH] 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 --- cgclassify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2