qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] vmdk: Fix "%x" to PRIx32 in format strings for


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] vmdk: Fix "%x" to PRIx32 in format strings for cid
Date: Thu, 17 Apr 2014 12:27:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 17.04.2014 um 11:39 hat Fam Zheng geschrieben:
> Signed-off-by: Fam Zheng <address@hidden>
> ---
>  block/vmdk.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/block/vmdk.c b/block/vmdk.c
> index 938a183..c761584 100644
> --- a/block/vmdk.c
> +++ b/block/vmdk.c
> @@ -262,7 +262,7 @@ static uint32_t vmdk_read_cid(BlockDriverState *bs, int 
> parent)
>      p_name = strstr(desc, cid_str);
>      if (p_name != NULL) {
>          p_name += cid_str_size;
> -        sscanf(p_name, "%x", &cid);
> +        sscanf(p_name, "%" PRIx32, &cid);

This needs to be SCNx32.

Looks good otherwise.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]