qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->secto


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long
Date: Wed, 22 Sep 2010 19:44:00 +0000

On Wed, Sep 22, 2010 at 7:33 PM, Peter Lemenkov <address@hidden> wrote:
> Signed-off-by: Peter Lemenkov <address@hidden>
> ---
>  block/blkverify.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/block/blkverify.c b/block/blkverify.c
> index 4202685..033eab2 100644
> --- a/block/blkverify.c
> +++ b/block/blkverify.c
> @@ -58,7 +58,7 @@ static void blkverify_err(BlkverifyAIOCB *acb, const char 
> *fmt, ...)
>     va_list ap;
>
>     va_start(ap, fmt);
> -    fprintf(stderr, "blkverify: %s sector_num=%ld nb_sectors=%d ",
> +    fprintf(stderr, "blkverify: %s sector_num=%lld nb_sectors=%d ",

It's not 'long long' but int64_t, so the correct format is
...sector_num=%" PRId64 " nb_sectors=...



reply via email to

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