[CRIU] [crtools-bot] sockets: Print icons numbers in debug printing

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 27 14:23:37 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit b21c2c8c1d36ac0384060a7777bdde292a3b15cc
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Wed Jan 25 20:32:01 2012 +0400

    sockets: Print icons numbers in debug printing
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 sockets.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/sockets.c b/sockets.c
index 64ec9f3..738ba5a 100644
--- a/sockets.c
+++ b/sockets.c
@@ -128,6 +128,13 @@ static void show_one_unix(char *act, struct unix_sk_desc *sk)
 {
 	dprintk("\t%s: ino %d type %d state %d name %s\n",
 		act, sk->sd.ino, sk->type, sk->state, sk->name);
+
+	if (sk->nr_icons) {
+		int i;
+
+		for (i = 0; i < sk->nr_icons; i++)
+			dprintk("\t\ticon: %4d\n", sk->icons[i]);
+	}
 }
 
 static void show_one_unix_img(char *act, struct unix_sk_entry *e)


More information about the CRIU mailing list