[CRIU] [PATCH] criu: print a criu version with the info level

Dmitry Safonov 0x7f454c46 at gmail.com
Wed Nov 22 13:28:18 MSK 2017


2017-11-22 0:58 GMT+00:00 Andrei Vagin <avagin at openvz.org>:
> We always ask users what version of criu they use to investigate a problem,
> so it better to have it in a log.
>
> Signed-off-by: Andrei Vagin <avagin at openvz.org>

That's nice.
Reviewed-by: Dmitry Safonov <0x7f454c46 at gmail.com>

> ---
>  criu/crtools.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/criu/crtools.c b/criu/crtools.c
> index 741b7b2eb..de74e483c 100644
> --- a/criu/crtools.c
> +++ b/criu/crtools.c
> @@ -713,7 +713,7 @@ int main(int argc, char *argv[], char *envp[])
>         libsoccr_set_log(log_level, soccr_print_on_level);
>         compel_log_init(vprint_on_level, log_get_loglevel());
>
> -       pr_debug("Version: %s (gitid %s)\n", CRIU_VERSION, CRIU_GITID);
> +       pr_info("Version: %s (gitid %s)\n", CRIU_VERSION, CRIU_GITID);
>         if (opts.deprecated_ok)
>                 pr_debug("DEPRECATED ON\n");
>
> --
> 2.13.6
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



-- 
             Dmitry


More information about the CRIU mailing list