Commit 6f589a4f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

sockets: Fix a few problems if compiled with DEBUG=1

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4f83d028
......@@ -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);
}
......@@ -938,7 +938,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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment