[CRIU] [PATCH 3/7] sockets: Align output in collected unix/inet sockets debug printing

Cyrill Gorcunov gorcunov at openvz.org
Fri Apr 20 18:56:36 EDT 2012


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 5b3b13a..c18f21a 100644
--- a/sockets.c
+++ b/sockets.c
@@ -127,8 +127,8 @@ static void show_one_inet(const char *act, const struct inet_sk_desc *sk)
 		pr_perror("Failed to translate address");
 	}
 
-	pr_debug("\t%s: ino 0x%x family %d type %d port %d "
-		"state %d src_addr %s\n",
+	pr_debug("\t%s: ino 0x%8x family %4d type %4d port %8d "
+		"state %2d src_addr %s\n",
 		act, sk->sd.ino, sk->sd.family, sk->type, sk->src_port,
 		sk->state, src_addr);
 }
@@ -150,8 +150,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%8x family %4d type %4d state %2d name %s\n",
+		act, sk->sd.ino, sk->sd.family, sk->type, sk->state, sk->name);
 
 	if (sk->nr_icons) {
 		int i;
-- 
1.7.7.6



More information about the CRIU mailing list