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

Alexander Kartashov alekskartashov at parallels.com
Thu May 30 05:29:36 EDT 2013


On 05/30/2013 01:18 PM, Chanho Park wrote:
> 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;
>   		}

I think it's better to do this using the macro PRIx64.
Ack, if Pavel doesn't mind.

-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list