[v7,8/9] unix: Improve debug message when collecting socket

Submitted by Cyrill Gorcunov on May 23, 2018, 4:06 p.m.

Details

Message ID 20180523160615.31428-9-gorcunov@gmail.com
State New
Series "Add support of deleted unix sockets"
Headers show

Commit Message

Cyrill Gorcunov May 23, 2018, 4:06 p.m.
Print its type and state.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sk-unix.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index e39f313aaa0b..00ec21962bcd 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -2098,9 +2098,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) {