[CRIU] [PATCH 5/6] compel: plugins,fds -- Fix log.h inclusion

Cyrill Gorcunov gorcunov at openvz.org
Thu Nov 17 14:44:35 PST 2016


It's pie plugin so we don't have to look into compel
library files, otherwise compel_print_on_level reference
appear.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/plugins/fds/fds.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/compel/plugins/fds/fds.c b/compel/plugins/fds/fds.c
index a19c66287367..07d36e700a47 100644
--- a/compel/plugins/fds/fds.c
+++ b/compel/plugins/fds/fds.c
@@ -6,8 +6,14 @@
 #include "uapi/std/string.h"
 #include "uapi/plugin-fds.h"
 
+#include "uapi/std/log.h"
 #include "std-priv.h"
-#include "log.h"
+
+/*
+ * FIXME pr_X helpers should go into some
+ * common/pr-base.h header.
+ */
+#define pr_err(fmt, ...)
 
 #include "common/compiler.h"
 #include "common/bug.h"
-- 
2.7.4



More information about the CRIU mailing list