mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
parasite-msg: %u is not implemented for parasite code
Changed all the %u into %d. Ideally, we should implement the %u format for parasite code. Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
This commit is contained in:
parent
ef7ef9cfa0
commit
2c2fdd3334
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ static int mprotect_vmas(struct parasite_dump_pages_args *args)
|
|||
vma = vmas + i;
|
||||
ret = sys_mprotect((void *)vma->start, vma->len, vma->prot | args->add_prot);
|
||||
if (ret) {
|
||||
pr_err("mprotect(%08lx, %lu) failed with code %d\n",
|
||||
pr_err("mprotect(%08lx, %ld) failed with code %d\n",
|
||||
vma->start, vma->len, ret);
|
||||
break;
|
||||
}
|
||||
|
|
@ -102,7 +102,7 @@ static int dump_pages(struct parasite_dump_pages_args *args)
|
|||
}
|
||||
if (spliced_bytes != args->nr_pages * PAGE_SIZE) {
|
||||
sys_close(p);
|
||||
pr_err("Can't splice all pages to pipe (%lu/%d)\n", spliced_bytes, args->nr_pages);
|
||||
pr_err("Can't splice all pages to pipe (%ld/%d)\n", spliced_bytes, args->nr_pages);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue