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 <[email protected]> --- api.c | 2 +- cgrulesengd.h | 6 +++--- libcgroup.h | 2 +- 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 bdffd31..7a0a4ce 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) ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
