Commit caea044a authored by Kinsbursky Stanislav's avatar Kinsbursky Stanislav Committed by Pavel Emelyanov

protobuf: use pb-vertical show function for ghost file

Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5bb1b842
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment