]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
The previous patch is split so the second part of the patch:
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Tue, 3 Feb 2009 10:26:01 +0000 (10:26 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Tue, 3 Feb 2009 10:26:01 +0000 (10:26 +0000)
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

cgclassify.c

index 556ed3ff78acb8195e8f54be95befc0f8c987847..c41f52983b845ea4ba4da5f920fa33787c05d5cd 100644 (file)
@@ -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;
        }