mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
protobuf: use generic show function for ipc namespace variables
v2: 1) Debug garbage removed Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
ba4366d3da
commit
8c72187be1
17
ipc_ns.c
17
ipc_ns.c
@ -534,24 +534,9 @@ void show_ipc_shm(int fd, struct cr_options *o)
|
|||||||
o->show_pages_content);
|
o->show_pages_content);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void show_ipc_var_entry(int fd)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
IpcVarEntry *var;
|
|
||||||
|
|
||||||
ret = pb_read_eof(fd, &var, ipc_var_entry);
|
|
||||||
if (ret <= 0)
|
|
||||||
return;
|
|
||||||
ipc_sysctl_req(var, CTL_SHOW);
|
|
||||||
|
|
||||||
ipc_var_entry__free_unpacked(var, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void show_ipc_var(int fd, struct cr_options *o)
|
void show_ipc_var(int fd, struct cr_options *o)
|
||||||
{
|
{
|
||||||
pr_img_head(CR_FD_IPCNS);
|
pb_show_vertical(fd, ipc_var_entry);
|
||||||
show_ipc_var_entry(fd);
|
|
||||||
pr_img_tail(CR_FD_IPCNS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int prepare_ipc_sem_values(int fd, const IpcSemEntry *entry)
|
static int prepare_ipc_sem_values(int fd, const IpcSemEntry *entry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user