Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbYJVFUw (ORCPT ); Wed, 22 Oct 2008 01:20:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751126AbYJVFUn (ORCPT ); Wed, 22 Oct 2008 01:20:43 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:42962 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751044AbYJVFUn (ORCPT ); Wed, 22 Oct 2008 01:20:43 -0400 Date: Tue, 21 Oct 2008 22:20:20 -0700 (PDT) Message-Id: <20081021.222020.05274832.davem@davemloft.net> To: randy.dunlap@oracle.com 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) From: David Miller In-Reply-To: <20081021221116.dd56244b.randy.dunlap@oracle.com> References: <20081022050142.GA11674@kroah.com> <20081021.220754.06835391.davem@davemloft.net> <20081021221116.dd56244b.randy.dunlap@oracle.com> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1211 Lines: 32 From: Randy Dunlap Date: Tue, 21 Oct 2008 22:11:16 -0700 > 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... ?? I think you're right. My old fingers must do %Z automatically because gcc a long time ago didn't recognize %z and warned. That should be such an old gcc problem as to be irrelevant these days. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/