xfs
[Top] [All Lists]

Re: [PATCH] fix format string warnings in xfsidbg

To: David Chinner <dgc@xxxxxxx>
Subject: Re: [PATCH] fix format string warnings in xfsidbg
From: Christoph Hellwig <hch@xxxxxx>
Date: Mon, 16 Jul 2007 08:44:15 +0200
Cc: Christoph Hellwig <hch@xxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20070716033148.GL12413810@xxxxxxx>
References: <20070715171948.GA6894@xxxxxx> <20070716033148.GL12413810@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Mon, Jul 16, 2007 at 01:31:48PM +1000, David Chinner wrote:
> On Sun, Jul 15, 2007 at 07:19:48PM +0200, Christoph Hellwig wrote:
> > @@ -6818,7 +6818,7 @@ xfsidbg_xihash(xfs_mount_t *mp)
> >  
> >     kdb_printf("\n");
> >  
> > -   kdb_printf("total inodes = %d, average length = %ld, adjusted average = 
> > %ld \n",
> > +   kdb_printf("total inodes = %zu, average length = %zu, adjusted average 
> > = %zu\n",
> >             total, total / mp->m_ihsize,
> >             total / (mp->m_ihsize - numzeros));
> 
> ia64 build gives:
> 
> fs/xfs/xfsidbg.c:6826: warning: format ?%zu? expects type ?size_t?, but
> argument 2 has type ?int?
> 
> total is declared as an int - I'll change it back to %d....

Hmm, I wonder why I got the warnings here and %zu fixed them.  


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