xfs
[Top] [All Lists]

RE: [PATCH] xfstests: fix format string warnings in aio-dio-extend-stat.

To: "Christoph Hellwig" <hch@xxxxxxxxxxxxx>
Subject: RE: [PATCH] xfstests: fix format string warnings in aio-dio-extend-stat.c
From: "Alex Elder" <aelder@xxxxxxx>
Date: Thu, 21 Jan 2010 08:01:13 -0600
Cc: <xfs@xxxxxxxxxxx>
In-reply-to: <20100121113421.GC3580@xxxxxxxxxxxxx>
Thread-index: AcqajcbMCK1Ey3n8RYirKWxc+DP7MQAFF44w
Thread-topic: [PATCH] xfstests: fix format string warnings in aio-dio-extend-stat.c
Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Looks good.

Reviewed-by: Alex Elder <aelder@xxxxxxx>

> Index: xfstests-dev/src/aio-dio-regress/aio-dio-extend-stat.c
> ===================================================================
> --- xfstests-dev.orig/src/aio-dio-regress/aio-dio-extend-stat.c       
> 2010-01-21 11:27:36.000000000
> +0000 +++ xfstests-dev/src/aio-dio-regress/aio-dio-extend-stat.c      
> 2010-01-21 11:28:15.000000000
> +0000 @@ -149,8 +149,9 @@ void fun_read(void *ptr)
>                       if (filestat.st_size < exSize)
>                               fail("write of %lu bytes @%llu finished, "
>                                    "expected filesize at least %llu, but "
> -                                  "got %ld\n", event->obj->u.c.nbytes,
> -                                  event->obj->u.c.offset, exSize, 
> filestat.st_size);
> +                                  "got %lld\n", event->obj->u.c.nbytes,
> +                                  event->obj->u.c.offset, exSize,
> +                                  (long long)filestat.st_size);
>               }
>       }
>  }
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

<Prev in Thread] Current Thread [Next in Thread>