From 47aade336d779d10ec2ed98f0fab0365be41aae4 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 9 Jun 2018 16:06:55 +0300 Subject: [PATCH] unix: Improve debug message when collecting socket Print its type and state. Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrei Vagin --- 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 c14c34589..c6200481a 100644 --- a/criu/sk-unix.c +++ b/criu/sk-unix.c @@ -2122,9 +2122,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) {