[CRIU] [PATCH 05/15] protobuf: use generic show function for pipe

Kinsbursky Stanislav skinsbursky at openvz.org
Wed Jul 18 05:05:15 EDT 2012


From: Stanislav Kinsbursky <skinsbursky at openvz.org>

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
 cr-show.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
-------------- next part --------------
diff --git a/cr-show.c b/cr-show.c
index 8bbd2be..82cc5aa 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -186,19 +186,13 @@ void show_pipes(int fd_pipes, struct cr_options *o)
 	int ret;
 
 	pr_img_head(CR_FD_PIPES);
-
 	while (1) {
 		ret = pb_read_eof(fd_pipes, &e, pipe_entry);
 		if (ret <= 0)
-			goto out;
-		pr_msg("id: 0x%8x pipeid: 0x%8x flags: 0x%8x ",
-		       e->id, e->pipe_id, e->flags);
-		pb_show_fown_cont(e->fown);
-		pr_msg("\n");
+			break;
+		pb_show_msg(e, &pipe_entry__descriptor);
 		pipe_entry__free_unpacked(e, NULL);
 	}
-
-out:
 	pr_img_tail(CR_FD_PIPES);
 }
 


More information about the CRIU mailing list