Am 17.04.2014 um 11:39 hat Fam Zheng geschrieben:
> Signed-off-by: Fam Zheng <f...@redhat.com>
> ---
>  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