[CRIU] [PATCH 2/3] files: Print the state of files restoring transition

Cyrill Gorcunov gorcunov at openvz.org
Tue Apr 10 10:47:11 EDT 2012


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: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/files.c b/files.c
index 25fb837..ef037d1 100644
--- a/files.c
+++ b/files.c
@@ -415,7 +415,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:
-- 
1.7.7.6



More information about the CRIU mailing list