All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: David Chinner <dgc@sgi.com>
Cc: Christoph Hellwig <hch@lst.de>, xfs@oss.sgi.com
Subject: Re: [PATCH] fix format string warnings in xfsidbg
Date: Mon, 16 Jul 2007 08:44:15 +0200	[thread overview]
Message-ID: <20070716064415.GA8848@lst.de> (raw)
In-Reply-To: <20070716033148.GL12413810@sgi.com>

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.  

      reply	other threads:[~2007-07-16  6:44 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
2007-07-16  6:44   ` Christoph Hellwig [this message]

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=20070716064415.GA8848@lst.de \
    --to=hch@lst.de \
    --cc=dgc@sgi.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.