]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup: Rename DEBUG to CGROUP_DEBUG
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 16 Feb 2009 08:43:31 +0000 (08:43 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 16 Feb 2009 08:43:31 +0000 (08:43 +0000)
From: Jan Safranek <jsafrane@redhat.com>

Using plain DEBUG can be dangerous, it might have side effects on different
libraries, there should be something with CGROUP_ prefix.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@325 4f4bb910-9a46-0410-90c8-c897d4f1cd53

api.c
cgrulesengd.h
libcgroup.h

diff --git a/api.c b/api.c
index eb943037cde16af569c84c187caf824776e5d56b..647841f2c5ae380a5771a83d94d0ee3bc0bf27d7 100644 (file)
--- a/api.c
+++ b/api.c
@@ -2050,7 +2050,7 @@ int cgroup_reload_cached_rules()
                goto finished;
        }
                
-       #ifdef DEBUG
+       #ifdef CGROUP_DEBUG
                cgroup_print_rules_config(stdout);
        #endif
 
index 5c5d2a5a3891cbec3453cccaee002967ce9b06f0..f49f79f3b4ff477f39baf0060bdd52f6ebd8fb03 100644 (file)
@@ -30,12 +30,12 @@ __BEGIN_DECLS
 #define __USE_GNU
 #endif
 
-/* A simple macro for printing messages only when DEBUG is defined. */
-#ifdef DEBUG
+/* A simple macro for printing messages only when CGROUP_DEBUG is defined. */
+#ifdef CGROUP_DEBUG
   #define fdbg(a, b...) fprintf(a, b)
 #else
   #define fdbg(a, b...) do {} while(0)
-#endif /* DEBUG */
+#endif /* CGROUP_DEBUG */
 
 /* The following ten macros are all for the Netlink code. */
 #define SEND_MESSAGE_LEN (NLMSG_LENGTH(sizeof(struct cn_msg) + \
index 4fb99ffb83c477a239f0f202df89de13be3f6023..37bc8887ba1c29e89a24706330f50f1f010db399 100644 (file)
@@ -43,7 +43,7 @@ __BEGIN_DECLS
 /* Estimated number of groups created */
 #define MAX_GROUP_ELEMENTS     128
 
-#ifdef DEBUG
+#ifdef CGROUP_DEBUG
 #define dbg(x...) printf(x)
 #else
 #define dbg(x...) do {} while(0)