From 4d4543f66ea230fc73838a0f44e571b10152f462 Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Tue, 30 Apr 2013 06:05:27 +0000 Subject: [PATCH] page-read: fixed format strings Use the format specifier PRIx64 instead of %lx to print an off_t integer. Signed-off-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- page-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page-read.c b/page-read.c index 4e1941baf..165960063 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) {