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:
Nicolas Viennot 2020-04-13 17:20:34 +00:00 committed by Andrei Vagin
parent ef7ef9cfa0
commit 2c2fdd3334

View file

@ -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;
}