[CRIU] [PATCH 1/2] sk-packet.c: fixed a format string warning on ARM

Alexander Kartashov alekskartashov at parallels.com
Wed Apr 3 12:03:02 EDT 2013


Use a PRI* format specifier to convert an integer of known size
to a string.

Cc: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 sk-packet.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sk-packet.c b/sk-packet.c
index 6829d9c..47d0ee8 100644
--- a/sk-packet.c
+++ b/sk-packet.c
@@ -153,7 +153,7 @@ static int dump_one_packet_fd(int lfd, u32 id, const struct fd_parms *p)
 
 	sd = (struct packet_sock_desc *)lookup_socket(p->stat.st_ino, PF_PACKET, 0);
 	if (IS_ERR_OR_NULL(sd)) {
-		pr_err("Can't find packet socket %lu\n", p->stat.st_ino);
+		pr_err("Can't find packet socket %"PRIu64"\n", p->stat.st_ino);
 		return -1;
 	}
 
-- 
1.7.10.4



More information about the CRIU mailing list