[CRIU] [PATCH 09/15] protobuf: use generic show function for reg files

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


From: Stanislav Kinsbursky <skinsbursky at openvz.org>

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
 cr-show.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
-------------- next part --------------
diff --git a/cr-show.c b/cr-show.c
index 729426a..1050bfb 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -107,12 +107,7 @@ void show_reg_files(int fd_reg_files, struct cr_options *o)
 		ret = pb_read_eof(fd_reg_files, &rfe, reg_file_entry);
 		if (ret <= 0)
 			break;
-
-		pr_msg("id: 0x%8x flags: 0x%4x pos: 0x%lx",
-		       rfe->id, rfe->flags, rfe->pos);
-		if (rfe->name)
-			pr_msg(" --> %s", rfe->name);
-		pr_msg("\n");
+		pb_show_msg(rfe, &reg_file_entry__descriptor);
 		reg_file_entry__free_unpacked(rfe, NULL);
 	}
 	pr_img_tail(CR_FD_REG_FILES);


More information about the CRIU mailing list