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

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


Use the format specifier %zu instead of %lu to print a size_t integer.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 page-pipe.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/page-pipe.c b/page-pipe.c
index 309c6c9..f7c892b 100644
--- a/page-pipe.c
+++ b/page-pipe.c
@@ -190,13 +190,13 @@ void debug_show_page_pipe(struct page_pipe *pp)
 				ppb->pages_in, ppb->nr_segs);
 		for (i = 0; i < ppb->nr_segs; i++) {
 			iov = &ppb->iov[i];
-			pr_debug("\t\t%p %lu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
+			pr_debug("\t\t%p %zu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
 		}
 	}
 
 	pr_debug("* %u holes:\n", pp->free_hole);
 	for (i = 0; i < pp->free_hole; i++) {
 		iov = &pp->holes[i];
-		pr_debug("\t%p %lu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
+		pr_debug("\t%p %zu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
 	}
 }
-- 
1.7.10.4



More information about the CRIU mailing list