Date: Fri, 3 Jan 2003 09:09:00 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Harti Brandt <brandt@fokus.gmd.de> Cc: hackers@FreeBSD.ORG Subject: Re: printing of uint64_t in the kernel Message-ID: <20030103090900.B8517@Odin.AC.HMC.Edu> In-Reply-To: <20030103175514.H901-100000@beagle.fokus.gmd.de>; from brandt@fokus.gmd.de on Fri, Jan 03, 2003 at 06:00:04PM %2B0100 References: <20030103175514.H901-100000@beagle.fokus.gmd.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030103090900.B8517>