From owner-freebsd-hackers Fri Jan 3 9: 9:10 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C550C37B401 for ; Fri, 3 Jan 2003 09:09:08 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DBB043EC2 for ; Fri, 3 Jan 2003 09:09:08 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h03H908r010395; Fri, 3 Jan 2003 09:09:00 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h03H90LT010394; Fri, 3 Jan 2003 09:09:00 -0800 Date: Fri, 3 Jan 2003 09:09:00 -0800 From: Brooks Davis To: Harti Brandt Cc: hackers@FreeBSD.ORG Subject: Re: printing of uint64_t in the kernel Message-ID: <20030103090900.B8517@Odin.AC.HMC.Edu> References: <20030103175514.H901-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030103175514.H901-100000@beagle.fokus.gmd.de>; from brandt@fokus.gmd.de on Fri, Jan 03, 2003 at 06:00:04PM +0100 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 03, 2003 at 06:00:04PM +0100, Harti Brandt wrote: >=20 > 2. cast always to uintmax_t and use %ju. This is correct. > The first possibilities seems wrong, because one should not include a > non-system header, the second because given a (hypothetical) machine with > 128-bit uintmax_t this would incure a useless overhead. So what? The overhead of an integer conversion is going to be lost in the overhead of doing the printf. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+FcOqXY6L6fI4GtQRAnoHAKC49J62vAwZog3EQRkxOVADtj9OQACfcAqD PR8gKk3O1LKJJve+lotWR/w= =jgln -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message