From ec6b8e77e5057c3bb30c00df9e8a152047a4f2f9 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 11 Jul 2013 19:10:25 +0400 Subject: [PATCH] net: unix -- Print collected socket names Quite convenient to know which exactly names are used. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- sk-unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sk-unix.c b/sk-unix.c index 750e9cf6c..c881f9bec 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);