summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api.c2
-rw-r--r--cgrulesengd.h6
-rw-r--r--libcgroup.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/api.c b/api.c
index eb94303..647841f 100644
--- 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
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)