diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-02-16 08:43:31 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-02-16 08:43:31 +0000 |
commit | 492bd6ac5f9c703f1687ff8d56bb4a0d014557b8 (patch) | |
tree | 65906ab232047aa35a451ce3c6c04d27b09a5b78 | |
parent | 430040ab8b27a4bd1f4cfd077abe5d70be26b928 (diff) | |
download | libcg-492bd6ac5f9c703f1687ff8d56bb4a0d014557b8.tar.gz libcg-492bd6ac5f9c703f1687ff8d56bb4a0d014557b8.tar.xz libcg-492bd6ac5f9c703f1687ff8d56bb4a0d014557b8.zip |
libcgroup: Rename DEBUG to CGROUP_DEBUG
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
-rw-r--r-- | api.c | 2 | ||||
-rw-r--r-- | cgrulesengd.h | 6 | ||||
-rw-r--r-- | libcgroup.h | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -2050,7 +2050,7 @@ int cgroup_reload_cached_rules() goto finished; } - #ifdef DEBUG + #ifdef CGROUP_DEBUG cgroup_print_rules_config(stdout); #endif diff --git a/cgrulesengd.h b/cgrulesengd.h index 5c5d2a5..f49f79f 100644 --- a/cgrulesengd.h +++ b/cgrulesengd.h @@ -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) + \ diff --git a/libcgroup.h b/libcgroup.h index 4fb99ff..37bc888 100644 --- a/libcgroup.h +++ b/libcgroup.h @@ -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) |