summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index a0f82d6..3c04b6a 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <libcgroup.h>
+#include "../config.h"
#define SIZE 100 /* Max size of a message to be printed */
#define NUM_MSGS 20 /* Number of such messsages */
@@ -146,4 +147,10 @@ void build_path(char *target, char *mountpoint,
const char *group, const char *file);
pid_t cgrouptest_gettid();
+#ifdef CGROUP_DEBUG
+#define cgroup_dbg(p...) printf(p...)
+#else
+#define cgroup_dbg(p...) do {} while (0);
+#endif
+
#endif