[CRIU] [PATCH 4/6] protobuf: use generic show function for uts namespace

Kinsbursky Stanislav skinsbursky at openvz.org
Wed Jul 25 08:06:33 EDT 2012


Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 uts_ns.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/uts_ns.c b/uts_ns.c
index 9c9098f..b6541bc 100644
--- a/uts_ns.c
+++ b/uts_ns.c
@@ -66,15 +66,5 @@ out:
 
 void show_utsns(int fd, struct cr_options *o)
 {
-	int ret;
-	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);
+	pb_show_vertical(fd, utsns_entry);
 }



More information about the CRIU mailing list