[CRIU] [PATCH 4/5] sockets: Fix a few problems if compiled with DEBUG=1

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 1 07:24:38 EST 2012


sockets.c: In function ‘show_one_inet_img’:
sockets.c:151:2: error: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘char *’ [-Werror=format]
sockets.c: In function ‘open_unix_sk_stream’:
sockets.c:925:10: error: unknown escape sequence: '\C' [-Werror]

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

diff --git a/sockets.c b/sockets.c
index cf65dbe..3e4d3e6 100644
--- a/sockets.c
+++ b/sockets.c
@@ -149,7 +149,7 @@ static void show_one_inet_img(char *act, struct inet_sk_entry *e)
 	}
 
 	dprintk("\t%s: fd %d family %d type %d proto %d port %d "
-		"state %d src_addr %d\n",
+		"state %d src_addr %s\n",
 		act, e->fd, e->family, e->type, e->proto, e->src_port, e->state,
 		src_addr);
 }
@@ -922,7 +922,7 @@ static int open_unix_sk_stream(int sk, struct unix_sk_entry *ue, int img_fd)
 		e->addrlen	= sizeof(e->addr.sun_family) + ue->namelen;
 		e->ino		= ue->id;
 
-		dprintk("\t\Collected listening socket %d\n", ue->id);
+		dprintk("\tCollected listening socket %d\n", ue->id);
 
 	} else if (ue->state == TCP_ESTABLISHED) {
 
-- 
1.7.7.6



More information about the CRIU mailing list