qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long
@ 2010-09-22 19:33 Peter Lemenkov
  2010-09-22 19:44 ` Blue Swirl
  2010-09-22 19:47 ` Anthony Liguori
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Lemenkov @ 2010-09-22 19:33 UTC (permalink / raw)
  To: QEMU Developers

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 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 ",
             acb->is_write ? "write" : "read", acb->sector_num,
             acb->nb_sectors);
     vfprintf(stderr, fmt, ap);
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long
  2010-09-22 19:33 [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long Peter Lemenkov
@ 2010-09-22 19:44 ` Blue Swirl
  2010-09-22 19:47 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2010-09-22 19:44 UTC (permalink / raw)
  To: Peter Lemenkov; +Cc: QEMU Developers

On Wed, Sep 22, 2010 at 7:33 PM, Peter Lemenkov <lemenkov@gmail.com> wrote:
> Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
> ---
>  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=...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long
  2010-09-22 19:33 [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long Peter Lemenkov
  2010-09-22 19:44 ` Blue Swirl
@ 2010-09-22 19:47 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2010-09-22 19:47 UTC (permalink / raw)
  To: Peter Lemenkov; +Cc: QEMU Developers

On 09/22/2010 02:33 PM, Peter Lemenkov wrote:
> Signed-off-by: Peter Lemenkov<lemenkov@gmail.com>
> ---
>   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 ",
>               acb->is_write ? "write" : "read", acb->sector_num,
>    

It's not a long long, it's a PRId64.  I've updated appropriately.

Regards,

Anthony Liguori

>               acb->nb_sectors);
>       vfprintf(stderr, fmt, ap);
>    

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-22 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 19:33 [Qemu-devel] [PATCH 1/1] Fix compilation: format string - acb->sector_num is long long Peter Lemenkov
2010-09-22 19:44 ` Blue Swirl
2010-09-22 19:47 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).