[CRIU] [PATCH] net: unix -- Print collected socket names

Cyrill Gorcunov gorcunov at openvz.org
Thu Jul 11 10:13:29 EDT 2013


Quite convenient to know which exactly names are used.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sk-unix.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sk-unix.c b/sk-unix.c
index 750e9cf..c881f9b 100644
--- a/sk-unix.c
+++ b/sk-unix.c
@@ -819,7 +819,9 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base)
 	futex_init(&ui->bound);
 	ui->peer = NULL;
 	ui->flags = 0;
-	pr_info(" `- Got %#x peer %#x\n", ui->ue->ino, ui->ue->peer);
+	pr_info(" `- Got %#x peer %#x (name %s)\n",
+		ui->ue->ino, ui->ue->peer,
+		ui->name ? (ui->name[0] ? ui->name : &ui->name[1]) : "-");
 	file_desc_add(&ui->d, ui->ue->id, &unix_desc_ops);
 	list_add_tail(&ui->list, &unix_sockets);
 
-- 
1.8.1.4



More information about the CRIU mailing list