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:
parent
cb9094d810
commit
4d4543f66e
@ -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);
|
pr_debug("\tpr%u Read page %lx from parent\n", pr->id, vaddr);
|
||||||
ret = read_pagemap_page_from_parent(pr->parent, vaddr, buf);
|
ret = read_pagemap_page_from_parent(pr->parent, vaddr, buf);
|
||||||
} else {
|
} 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));
|
vaddr, pr->cvaddr, lseek(pr->fd_pg, 0, SEEK_CUR));
|
||||||
ret = read(pr->fd_pg, buf, PAGE_SIZE);
|
ret = read(pr->fd_pg, buf, PAGE_SIZE);
|
||||||
if (ret != PAGE_SIZE) {
|
if (ret != PAGE_SIZE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user