2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

page-read: fixed format strings

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

Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Alexander Kartashov 2013-04-30 06:05:27 +00:00 committed by Pavel Emelyanov
parent cb9094d810
commit 4d4543f66e

View File

@ -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) {