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

Pavel Emelyanov xemul at parallels.com
Thu May 30 06:26:05 EDT 2013


On 05/30/2013 01:29 PM, Alexander Kartashov wrote:
> 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.
> 


Applied, thanks.


More information about the CRIU mailing list