xfs
[Top] [All Lists]

Re: [PATCH 6/8] xfstests: fix printf format warnings in looptest.c

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH 6/8] xfstests: fix printf format warnings in looptest.c
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 20 Jan 2010 03:32:17 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <1263958688-435-7-git-send-email-david@xxxxxxxxxxxxx>
References: <1263958688-435-1-git-send-email-david@xxxxxxxxxxxxx> <1263958688-435-7-git-send-email-david@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.19 (2009-01-05)
On Wed, Jan 20, 2010 at 02:38:06PM +1100, Dave Chinner wrote:
> Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
> ---
>  src/looptest.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/looptest.c b/src/looptest.c
> index d951f2b..3d99f38 100755
> --- a/src/looptest.c
> +++ b/src/looptest.c
> @@ -202,7 +202,7 @@ main(int argc, char *argv[])
>          
>          if ((flags & FLAG_OPENCLOSE) && (flags & FLAG_SEQUENTIAL)) {
>              if (flags & FLAG_VERBOSE)
> -                printf("seek %" LL "d\n", seek_to);
> +                printf("seek %" LL "d\n", (long long)seek_to);
>              if (SEEK(f, seek_to, FILE_BEGIN) < 0)
>               PERROR("SEEK", GET_LAST_ERROR);
>           seek_to += bufsize;

Ok.


Reviewed-by: Christoph Hellwig <hch@xxxxxx>

What an ugly code in this file, urggg.

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