[CRIU] [PATCH 03/11] log: Print version on startup

Cyrill Gorcunov gorcunov at openvz.org
Tue Aug 2 08:34:29 PDT 2016


For debug sake.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/crtools.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/criu/crtools.c b/criu/crtools.c
index 010273096892..7e11c22c6bc6 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -725,6 +725,8 @@ int main(int argc, char *argv[], char *envp[])
 	if (log_init(opts.output))
 		return 1;
 
+	pr_debug("Version: %s (gitid %s)\n", CRIU_VERSION, CRIU_GITID);
+
 	if (!list_empty(&opts.inherit_fds)) {
 		if (strcmp(argv[optind], "restore")) {
 			pr_err("--inherit-fd is restore-only option\n");
-- 
2.7.4



More information about the CRIU mailing list