[CRIU] [PATCH] compel: be silent if no errors

Kir Kolyshkin kir at openvz.org
Wed Jun 21 05:27:09 MSK 2017


Please.


On 05/15/2017 09:17 PM, Kir Kolyshkin wrote:
> In case of success, we want to be silent when on default log level.
>
> This is a time-honored UNIX tradition, who we are to break it?
>
> Signed-off-by: Kir Kolyshkin <kir at openvz.org>
> ---
>   compel/src/main.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/compel/src/main.c b/compel/src/main.c
> index 4f53e7e..1171478 100644
> --- a/compel/src/main.c
> +++ b/compel/src/main.c
> @@ -103,7 +103,7 @@ err:
>   	if (opts.fout)
>   		fclose(opts.fout);
>   	if (!ret)
> -		printf("%s generated successfully.\n", opts.output_filename);
> +		pr_info("%s generated successfully.\n", opts.output_filename);
>   	return ret;
>   }
>   



More information about the CRIU mailing list