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

Pavel Emelyanov xemul at virtuozzo.com
Fri Nov 18 03:09:49 PST 2016


On 11/18/2016 01:44 AM, Cyrill Gorcunov wrote:
> 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, ...)

Huh? Shouldn't this be in log-plugin?

>  #include "common/compiler.h"
>  #include "common/bug.h"
> 



More information about the CRIU mailing list