Commit 611343a5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

files: Print the state of files restoring transition

It's confusing to see the output like

 | Got fd for 3
 | Got fd for 3

Better to point what is going on

 | Got fd for 3 (state -> 0)
 | Got fd for 3 (state -> 1)
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a83ad7b8
......@@ -424,7 +424,7 @@ static int open_fdinfo(int pid, struct fdinfo_entry *fe, int *fdinfo_fd, int sta
if (move_img_fd(fdinfo_fd, fe->fd))
return -1;
pr_info("\t%d: Got fd for %d\n", pid, fe->fd);
pr_info("\t%d: Got fd for %d (state -> %d)\n", pid, fe->fd, state);
switch (state) {
case FD_STATE_PREP:
......
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