[2/2] criu: print criu and kernel versions from log_init()

Submitted by Dmitry Safonov on April 6, 2018, 1:49 p.m.


Message ID CAJwJo6YAqZJBQWgBCf567d6ak_4Y8q_+hKL_yh=4V-2LeuTTNA@mail.gmail.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Dmitry Safonov April 6, 2018, 1:49 p.m.
2018-04-06 8:49 GMT+01:00 Andrei Vagin <avagin@virtuozzo.com>:
> log_init() opens a log file. We want to have criu and kernel versions in
> each log file, so it looks reasonable to print them from log_init().
> Without this patch, versions are not printed, if criu is called in the
> swrk mode.
> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>

Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>

A small nit:

Patch hide | download patch | download mbox

--- a/criu/util.c
+++ b/criu/util.c
@@ -54,7 +54,6 @@ 
 #include "cr-service.h"
 #include "files.h"
 #include "pstree.h"
-#include "version.h"

 #include "cr-errno.h"