[CRIU] [PATCH 7/8] sockets.c: fix printf format warnings

Kir Kolyshkin kir at openvz.org
Tue Jan 31 06:31:27 EST 2012


sockets.c: In function ‘try_dump_socket’:
sockets.c:366:3: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘__ino_t’

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 sockets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sockets.c b/sockets.c
index fd306ec..2d36202 100644
--- a/sockets.c
+++ b/sockets.c
@@ -363,7 +363,7 @@ int try_dump_socket(pid_t pid, int fd, struct cr_fdset *cr_fdset)
 
 	sk = lookup_socket(st.st_ino);
 	if (!sk) {
-		pr_err("Uncollected socket %d\n", st.st_ino);
+		pr_err("Uncollected socket %ld\n", st.st_ino);
 		return -1;
 	}
 
-- 
1.7.4.4




More information about the CRIU mailing list