Commit 5a43e55e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

log: Print version on startup

For debug sake.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e46ba886
...@@ -663,6 +663,8 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -663,6 +663,8 @@ int main(int argc, char *argv[], char *envp[])
if (log_init(opts.output)) if (log_init(opts.output))
return 1; return 1;
pr_debug("Version: %s (gitid %s)\n", CRIU_VERSION, CRIU_GITID);
if (!list_empty(&opts.inherit_fds)) { if (!list_empty(&opts.inherit_fds)) {
if (strcmp(argv[optind], "restore")) { if (strcmp(argv[optind], "restore")) {
pr_err("--inherit-fd is restore-only option\n"); pr_err("--inherit-fd is restore-only option\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment