Commit 05f99678 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

unix: Improve debug message when collecting socket

Print its type and state.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 4691dcf3
......@@ -2107,9 +2107,9 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base, struct cr_img *i)
uname = "-";
}
pr_info(" `- Got %d peer %d (name %s%.*s dir %s)\n",
ui->ue->ino, ui->ue->peer,
prefix, ulen, uname,
pr_info(" `- Got id %#x ino %d type %s state %s peer %d (name %s%.*s dir %s)\n",
ui->ue->id, ui->ue->ino, socket_type_name(ui->ue->type),
tcp_state_name(ui->ue->state), ui->ue->peer, prefix, ulen, uname,
ui->name_dir ? ui->name_dir : "-");
if (ui->ue->peer || ui->name) {
......
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