[CRIU] [PATCH 2/6] protobuf: use generic show function for fs

Kinsbursky Stanislav skinsbursky at openvz.org
Wed Jul 25 08:06:18 EDT 2012


Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 cr-show.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/cr-show.c b/cr-show.c
index c7f9e54..298ab6d 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -120,17 +120,7 @@ void show_fifo(int fd, struct cr_options *o)
 
 void show_fs(int fd_fs, struct cr_options *o)
 {
-	FsEntry *fe;
-
-	pr_img_head(CR_FD_FS);
-
-	if (pb_read_eof(fd_fs, &fe, fs_entry) > 0) {
-		pr_msg("CWD : %#x\n", fe->cwd_id);
-		pr_msg("ROOT: %#x\n", fe->root_id);
-		fs_entry__free_unpacked(fe, NULL);
-	}
-
-	pr_img_tail(CR_FD_FS);
+	pb_show_vertical(fd_fs, fs_entry);
 }
 
 void show_vmas(int fd_vma, struct cr_options *o)



More information about the CRIU mailing list