From: Dhaval Giani Date: Fri, 15 May 2009 06:54:11 +0000 (+0530) Subject: libcgrouptest: Fix the cgroup_dbg macro X-Git-Tag: v0.34~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b0feb8599918d012cac34f3057c4066a63ce4de;p=thirdparty%2Flibcgroup.git libcgrouptest: Fix the cgroup_dbg macro 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 --- diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 3c04b6af..4ee9464e 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -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