[CRIU] [PATCH 2/4] sockets: Print peer number in show_one_unix, show_one_unix_img

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 16 12:36:32 EDT 2012


Also convert all ino into %x format.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sockets.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sockets.c b/sockets.c
index 348e9ce..97df7a8 100644
--- a/sockets.c
+++ b/sockets.c
@@ -242,8 +242,8 @@ static void show_one_inet_img(const char *act, const struct inet_sk_entry *e)
 
 static void show_one_unix(char *act, const struct unix_sk_desc *sk)
 {
-	pr_debug("\t%s: ino 0x%x type %d state %d name %s\n",
-		act, sk->sd.ino, sk->type, sk->state, sk->name);
+	pr_debug("\t%s: ino 0x%x peer_ino 0x%x type %d state %d name %s\n",
+		act, sk->sd.ino, sk->peer_ino, sk->type, sk->state, sk->name);
 
 	if (sk->nr_icons) {
 		int i;
@@ -255,8 +255,8 @@ static void show_one_unix(char *act, const struct unix_sk_desc *sk)
 
 static void show_one_unix_img(const char *act, const struct unix_sk_entry *e)
 {
-	pr_info("\t%s: id %u type %d state %d name %d bytes\n",
-		act, e->id, e->type, e->state, e->namelen);
+	pr_info("\t%s: id 0x%x peer 0x%x type %d state %d name %d bytes\n",
+		act, e->id, e->peer, e->type, e->state, e->namelen);
 }
 
 static int can_dump_inet_sk(const struct inet_sk_desc *sk)
-- 
1.7.7.6



More information about the CRIU mailing list