2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

proc_parse: fixed format strings

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

Reported-by: Mr Travis CI
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2015-03-27 15:27:59 +03:00
committed by Pavel Emelyanov
parent 6608402c97
commit 54d0f24107

View File

@@ -401,7 +401,7 @@ static int handle_vma(pid_t pid, struct vma_area *vma_area,
else if (S_ISCHR(st_buf->st_mode) && (st_buf->st_rdev == DEVZERO))
/* devzero mapping -- also makes sense */;
else {
pr_err("Can't handle non-regular mapping on %d's map %#lx\n", pid, vma_area->e->start);
pr_err("Can't handle non-regular mapping on %d's map %"PRIx64"\n", pid, vma_area->e->start);
goto err;
}
@@ -460,7 +460,7 @@ err_bogus_mapping:
goto err;
err_bogus_mapfile:
pr_perror("Can't open %d's mapfile link %lx", pid, vma_area->e->start);
pr_perror("Can't open %d's mapfile link %"PRIx64, pid, vma_area->e->start);
goto err;
}