From: David Chinner <dgc@sgi.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] fix format string warnings in xfsidbg
Date: Mon, 16 Jul 2007 13:31:48 +1000 [thread overview]
Message-ID: <20070716033148.GL12413810@sgi.com> (raw)
In-Reply-To: <20070715171948.GA6894@lst.de>
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....
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2007-07-16 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-15 17:19 [PATCH] fix format string warnings in xfsidbg Christoph Hellwig
2007-07-16 3:31 ` David Chinner [this message]
2007-07-16 6:44 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070716033148.GL12413810@sgi.com \
--to=dgc@sgi.com \
--cc=hch@lst.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox