From caea044a8b197f99a6a8a6ad678446cce77678d7 Mon Sep 17 00:00:00 2001 From: Kinsbursky Stanislav Date: Wed, 25 Jul 2012 18:29:40 +0400 Subject: [PATCH] protobuf: use pb-vertical show function for ghost file Signed-off-by: Stanislav Kinsbursky Signed-off-by: Pavel Emelyanov --- cr-show.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cr-show.c b/cr-show.c index 415b7f362..c7f9e54e8 100644 --- a/cr-show.c +++ b/cr-show.c @@ -78,14 +78,7 @@ void show_remap_files(int fd, struct cr_options *o) void show_ghost_file(int fd, struct cr_options *o) { - GhostFileEntry *gfe; - - pr_img_head(CR_FD_GHOST_FILE); - if (pb_read_eof(fd, &gfe, ghost_file_entry) > 0) { - pr_msg("uid %u god %u mode %#x\n", gfe->uid, gfe->gid, gfe->mode); - ghost_file_entry__free_unpacked(gfe, NULL); - } - pr_img_tail(CR_FD_GHOST_FILE); + pb_show_vertical(fd, ghost_file_entry); } void __show_pipes_data(int fd, struct cr_options *o)