[CRIU] [PATCH 2/4] parasite: fix typecasting error

Chanho Park chanho61.park at samsung.com
Thu May 30 05:18:06 EDT 2013


This patch fixes below typecasting error:
error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Werror=format]

Signed-off-by: Chanho Park <chanho61.park at samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham at samsung.com>
---
 parasite-syscall.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index 258be82..61d159f 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -730,7 +730,8 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
 
 		off = (vma->vma.start / PAGE_SIZE) * sizeof(u64);
 		if (lseek(fd, off, SEEK_SET) != off) {
-			pr_perror("Failed to seek address %lx\n", vma->vma.start);
+			pr_perror("Failed to seek address %lx\n",
+				  (long unsigned int)vma->vma.start);
 			ret = -1;
 			goto err;
 		}
-- 
1.7.9.5



More information about the CRIU mailing list