Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 2 Dec 2002 18:56:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 2 Dec 2002 18:56:33 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:40196 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Mon, 2 Dec 2002 18:56:32 -0500 To: linux-kernel@vger.kernel.org From: "H. Peter Anvin" Subject: Re: Large block device patch, part 1 of 9 Date: 2 Dec 2002 16:03:44 -0800 Organization: Transmeta Corporation, Santa Clara CA Message-ID: References: <15732.34929.657481.777572@notabene.cse.unsw.edu.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Disclaimer: Not speaking for Transmeta in any way, shape, or form. Copyright: Copyright 2002 H. Peter Anvin - All Rights Reserved Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1189 Lines: 29 Followup to: By author: Linus Torvalds In newsgroup: linux.dev.kernel > > I wonder if the right answer isn't to just make things like "__u64" be > "long long" even on 64-bit architectures (at least those on which it is 64 > bit, of course. I _think_ that's true of all of them). And then just use > "llu" for it all. > > Of course, the really _best_ option would be to have gcc's printf string > format be extensible and dynamic. > > Davem, is sparc64 "long long" 64-bit? > Some C libraries have "Ixx" as an extension meaning (u)intXX_t -- it's used in the same way as the other size modifiers, i.e. %I64x instead of %lx. This might be a useful extension to mimic. -hpa -- at work, in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - 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/