[CRIU] [PATCH 3/3] page-xfer: fixed format strings

Alexander Kartashov alekskartashov at parallels.com
Tue Apr 30 02:05:28 EDT 2013


Use the specifier %lu instead of %zu to print
an unsinged long integer.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 page-xfer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/page-xfer.c b/page-xfer.c
index 28f8306..4a35623 100644
--- a/page-xfer.c
+++ b/page-xfer.c
@@ -267,7 +267,7 @@ static int write_pagemap_to_server(struct page_xfer *xfer,
 static int write_pages_to_server(struct page_xfer *xfer,
 		int p, unsigned long len)
 {
-	pr_debug("Splicing %zu bytes / %zu pages into socket\n", len, len / PAGE_SIZE);
+	pr_debug("Splicing %lu bytes / %lu pages into socket\n", len, len / PAGE_SIZE);
 
 	if (splice(p, NULL, xfer->fd, NULL, len, SPLICE_F_MOVE) != len) {
 		pr_perror("Can't write pages to socket");
-- 
1.7.10.4



More information about the CRIU mailing list