]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Fix build with --enable-debug
authorEric Brower <ebrower@gmail.com>
Mon, 30 Aug 2010 07:54:54 +0000 (13:24 +0530)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Mon, 30 Aug 2010 07:54:54 +0000 (13:24 +0530)
cgroup_dbg(%s) is broken in src/lex.l. This patch fixes
it to use fprintf(stderr, ...)

Signed-off-by: Eric Brower <ebrower@gmail.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
src/lex.l

index 37eb64f4d81576116e2a64878105a49119057997..fdd2f2e13ef0ff03c02fefd2ce8b2d74282dbf7a 100644 (file)
--- a/src/lex.l
+++ b/src/lex.l
@@ -18,7 +18,7 @@
 #include "parse.h"
 int line_no = 1;
 
-#define YY_FATAL_ERROR(msg) cgroup_dbg(%s)
+#define YY_FATAL_ERROR(msg) fprintf(stderr, "%s\n", msg)
 %}
 
 %%