From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: linux-next: Tree for October 21 (printk format warnings) Date: Tue, 21 Oct 2008 22:11:16 -0700 Message-ID: <20081021221116.dd56244b.randy.dunlap@oracle.com> References: <20081021195109.ed83b102.sfr@canb.auug.org.au> <20081021215725.b9c2b941.randy.dunlap@oracle.com> <20081022050142.GA11674@kroah.com> <20081021.220754.06835391.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from rgminet01.oracle.com ([148.87.113.118]:10885 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002AbYJVFLc (ORCPT ); Wed, 22 Oct 2008 01:11:32 -0400 In-Reply-To: <20081021.220754.06835391.davem@davemloft.net> Sender: linux-next-owner@vger.kernel.org List-ID: To: David Miller Cc: greg@kroah.com, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org On Tue, 21 Oct 2008 22:07:54 -0700 (PDT) David Miller wrote: > From: Greg KH > 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