From patchwork Mon May 21 20:06:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v6,8/9] unix: Improve debug message when collecting socket From: Cyrill Gorcunov X-Patchwork-Id: 8380 Message-Id: <20180521200601.26297-9-gorcunov@gmail.com> To: crml Cc: Andrey Vagin Date: Mon, 21 May 2018 23:06:00 +0300 Print its type and state. Signed-off-by: Cyrill Gorcunov --- criu/sk-unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/criu/sk-unix.c b/criu/sk-unix.c index c0b607d3a1d0..f1ba89c10a17 100644 --- a/criu/sk-unix.c +++ b/criu/sk-unix.c @@ -2102,9 +2102,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) {