From: Randy Dunlap <randy.dunlap@oracle.com>
To: David Miller <davem@davemloft.net>
Cc: greg@kroah.com, sfr@canb.auug.org.au, linux-next@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: linux-next: Tree for October 21 (printk format warnings)
Date: Tue, 21 Oct 2008 22:11:16 -0700 [thread overview]
Message-ID: <20081021221116.dd56244b.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20081021.220754.06835391.davem@davemloft.net>
On Tue, 21 Oct 2008 22:07:54 -0700 (PDT) David Miller wrote:
> From: Greg KH <greg@kroah.com>
> Date: Tue, 21 Oct 2008 22:01:42 -0700
>
> > What's the expected modifier for "size_t" to work on all arches?
>
> Put "%Z" in front of the output specifier you want to use,
> for example %Zd for decimal and %Zx for hex.
>
> > Same goes for the result of "size_of()", what should we use there? Or
> > are we just required to always cast things?
>
> Sizeof should use the same as above.
I know that Alan recently merged a patch with %Zd instead of %zd,
but the ANSI spec says to use %z, so I thought that we were going with
that moreso than %Z... ??
---
~Randy
next prev parent reply other threads:[~2008-10-22 5:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 8:51 linux-next: Tree for October 21 Stephen Rothwell
2008-10-21 12:07 ` Josh Boyer
2008-10-21 12:14 ` Stephen Rothwell
2008-10-21 13:02 ` Josh Boyer
2008-10-21 17:20 ` David Woodhouse
2008-10-21 22:55 ` Stephen Rothwell
2008-10-22 4:25 ` linux-next: Tree for October 21 (jffs2) Randy Dunlap
2008-10-22 4:47 ` linux-next: Tree for October 21 (staging/prism2-usb) Randy Dunlap
2008-10-22 4:59 ` Greg KH
2008-10-22 5:05 ` Randy Dunlap
2008-10-22 4:57 ` linux-next: Tree for October 21 (printk format warnings) Randy Dunlap
2008-10-22 5:01 ` Greg KH
2008-10-22 5:07 ` David Miller
2008-10-22 5:11 ` Randy Dunlap [this message]
2008-10-22 5:20 ` David Miller
2008-10-22 5:09 ` Randy Dunlap
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=20081021221116.dd56244b.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=davem@davemloft.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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