[CRIU] [crtools-bot] sockets.c: fix printf format warnings

Cyrill Gorcunov gorcunov at openvz.org
Tue Jan 31 06:57:25 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 6c9d6a86a44b2358c177e429a138cf984a494c33
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Tue Jan 31 15:31:27 2012 +0400

    sockets.c: fix printf format warnings
    
    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>
    Signed-off-by: Cyrill Gorcunov <gorcunov 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;
 	}
 


More information about the CRIU mailing list