qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] qemu-io: small cleanups for the aio code


From: Christoph Hellwig
Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-io: small cleanups for the aio code
Date: Fri, 10 Jul 2009 03:37:50 +0200
User-agent: Mutt/1.3.28i

On Thu, Jul 09, 2009 at 03:02:59PM -0500, Anthony Liguori wrote:
> >-            if (memcmp(ctx->buf, cmp_buf, total)) {
> >+            memset(cmp_buf, ctx->pattern, ctx->qiov.size);
> >+            if (memcmp(ctx->buf, cmp_buf, ctx->qiov.size)) {
> >                     printf("Pattern verification failed at offset %lld, "
> >                             "%d bytes\n",
> >-                            (long long) ctx->offset, total);
> >+                            (long long) ctx->offset, ctx->qiov.size);
> >  
> 
> This breaks the build because ctx->qiov.size is a size_t and your format 
> parameter is a %d.

Work fine on 32 bit x86 :)  But yeah, the correct format that works on
all platforms would be %zd.





reply via email to

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