[CRIU] [PATCH 6/6] unix sockets: remove old show function

Kinsbursky Stanislav skinsbursky at openvz.org
Fri Jul 27 10:07:00 EDT 2012


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

---
 sk-unix.c |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/sk-unix.c b/sk-unix.c
index fa5a816..c7a5d39 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -517,39 +517,6 @@ pb_pr_field_t unix_sk_pretty_array[] = {
 	[10] = show_sk_unix_name,
 };
 
-void show_unixsk_pretty(int fd, struct cr_options *o)
-{
-	UnixSkEntry *ue;
-	int ret = 0;
-
-	pr_img_head(CR_FD_UNIXSK);
-
-	while (1) {
-		ret = pb_read_eof(fd, &ue, unix_sk_entry);
-		if (ret <= 0)
-			goto out;
-
-		pr_msg("id %#x ino %#x type %s state %s namelen %4d backlog %4d peer %#x flags %#x uflags %#x",
-			ue->id, ue->ino, sktype2s(ue->type), skstate2s(ue->state),
-			(int)ue->name.len, ue->backlog, ue->peer, ue->flags, ue->uflags);
-
-		if (ue->name.len) {
-			if (!ue->name.data[0])
-				ue->name.data[0] = '@';
-			pr_msg(" --> %s\n", ue->name.data);
-		} else
-			pr_msg("\n");
-		show_fown_cont(ue->fown);
-		pr_msg("\n");
-
-		if (ue->opts)
-			show_socket_opts(ue->opts);
-		unix_sk_entry__free_unpacked(ue, NULL);
-	}
-out:
-	pr_img_tail(CR_FD_UNIXSK);
-}
-
 void show_unixsk(int fd, struct cr_options *o)
 {
 	if (o->show_pretty)



More information about the CRIU mailing list