2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 18:07:57 +00:00

protobuf: use pb-vertical show function for ghost file

Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kinsbursky Stanislav 2012-07-25 18:29:40 +04:00 committed by Pavel Emelyanov
parent 5bb1b8428b
commit caea044a8b

View File

@ -78,14 +78,7 @@ void show_remap_files(int fd, struct cr_options *o)
void show_ghost_file(int fd, struct cr_options *o) void show_ghost_file(int fd, struct cr_options *o)
{ {
GhostFileEntry *gfe; pb_show_vertical(fd, ghost_file_entry);
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);
} }
void __show_pipes_data(int fd, struct cr_options *o) void __show_pipes_data(int fd, struct cr_options *o)