| 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@sgi.com> |
| References: | <20070715171948.GA6894@lst.de> <20070716033148.GL12413810@sgi.com> |
| 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> |
|---|---|---|
| ||
| Previous by Date: | TAKE 962221 - xfs-repair - Improve AG multithreading based on disk geometry, Barry Naujok |
|---|---|
| Next by Date: | TAKE 877955 - xfs_repair: don't handle existing lost+found in a way that seems to cause errors, Barry Naujok |
| Previous by Thread: | Re: [PATCH] fix format string warnings in xfsidbg, David Chinner |
| Next by Thread: | [PATCH] fix sparse endianess warnings in xfsidbg, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |