diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2009-02-03 10:26:01 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2009-02-03 10:26:01 +0000 |
commit | b9c9a343da08daf4a1694809247b6dc9d4533c29 (patch) | |
tree | 21f568700deb645ffe76f5298135e50bd6487ef1 | |
parent | 0ea80fd83c57c4d25729f4bba6ce0a357a6df9f7 (diff) | |
download | libcg-b9c9a343da08daf4a1694809247b6dc9d4533c29.tar.gz libcg-b9c9a343da08daf4a1694809247b6dc9d4533c29.tar.xz libcg-b9c9a343da08daf4a1694809247b6dc9d4533c29.zip |
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 <varekova@redhat.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@316 4f4bb910-9a46-0410-90c8-c897d4f1cd53
-rw-r--r-- | cgclassify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgclassify.c b/cgclassify.c index 556ed3f..c41f529 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; } |