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
goto finished;
}
- #ifdef DEBUG
+ #ifdef CGROUP_DEBUG
cgroup_print_rules_config(stdout);
#endif
#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) + \
/* 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)