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

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


Use the format specifier PRIx64 instead of %lx to print an off_t integer.

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

diff --git a/page-read.c b/page-read.c
index 4e1941b..1659600 100644
--- a/page-read.c
+++ b/page-read.c
@@ -122,7 +122,7 @@ static int read_pagemap_page(struct page_read *pr, unsigned long vaddr, void *bu
 		pr_debug("\tpr%u Read page %lx from parent\n", pr->id, vaddr);
 		ret = read_pagemap_page_from_parent(pr->parent, vaddr, buf);
 	} else {
-		pr_debug("\tpr%u Read page %lx from self %lx/%lx\n", pr->id,
+		pr_debug("\tpr%u Read page %lx from self %lx/%"PRIx64"\n", pr->id,
 				vaddr, pr->cvaddr, lseek(pr->fd_pg, 0, SEEK_CUR));
 		ret = read(pr->fd_pg, buf, PAGE_SIZE);
 		if (ret != PAGE_SIZE) {
-- 
1.7.10.4



More information about the CRIU mailing list