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

Andrei Vagin avagin at openvz.org
Wed Nov 22 03:58:41 MSK 2017


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>
---
 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



More information about the CRIU mailing list