Commit ec6b8e77 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

net: unix -- Print collected socket names

Quite convenient to know which exactly names are used.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1795ddca
...@@ -819,7 +819,9 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base) ...@@ -819,7 +819,9 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base)
futex_init(&ui->bound); futex_init(&ui->bound);
ui->peer = NULL; ui->peer = NULL;
ui->flags = 0; 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); file_desc_add(&ui->d, ui->ue->id, &unix_desc_ops);
list_add_tail(&ui->list, &unix_sockets); list_add_tail(&ui->list, &unix_sockets);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment