]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgrouptest: Fix the cgroup_dbg macro
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Fri, 15 May 2009 06:54:11 +0000 (12:24 +0530)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 18 May 2009 08:14:40 +0000 (13:44 +0530)
libcgrouptest: Fix the cgroup_dbg macro

On compiling with CGROUP_DEBUG enabled, compile was failing.

libcgrouptest01.c: In function ‘main’:
libcgrouptest01.c:57: error: expected ‘)’ before ‘...’ token
libcgrouptest01.c:64: error: expected ‘)’ before ‘...’ token
libcgrouptest01.c:68: error: expected ‘)’ before ‘...’ token
make[2]: *** [libcgrouptest01.o] Error 1

Fix this error.

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
tests/libcgrouptest.h

index 3c04b6afc1d212f1367cc15dc6ddf6c4aa8d9bd2..4ee9464ec6353f8a65c8eb68291e5a64660369cc 100644 (file)
@@ -148,7 +148,7 @@ void build_path(char *target, char *mountpoint,
 pid_t cgrouptest_gettid();
 
 #ifdef CGROUP_DEBUG
-#define cgroup_dbg(p...)       printf(p...)
+#define cgroup_dbg(p...)       printf(p)
 #else
 #define cgroup_dbg(p...)       do {} while (0);
 #endif