mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
protobuf: use pb-vertical show function for uts namespace
Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
bc04724a2c
commit
b49ee4cb5b
12
uts_ns.c
12
uts_ns.c
@ -66,15 +66,5 @@ out:
|
|||||||
|
|
||||||
void show_utsns(int fd, struct cr_options *o)
|
void show_utsns(int fd, struct cr_options *o)
|
||||||
{
|
{
|
||||||
int ret;
|
pb_show_vertical(fd, utsns_entry);
|
||||||
UtsnsEntry *ue;
|
|
||||||
|
|
||||||
ret = pb_read(fd, &ue, utsns_entry);
|
|
||||||
if (ret < 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
pr_msg("nodename: %s\n", ue->nodename);
|
|
||||||
pr_msg("domainname: %s\n", ue->domainname);
|
|
||||||
|
|
||||||
utsns_entry__free_unpacked(ue, NULL);
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user