Date: Tue, 8 Oct 2002 20:31:20 -0400 From: Mike Barcroft <mike@FreeBSD.org> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: freebsd-arch@freebsd.org Subject: Re: lp64 vs lp32 printf Message-ID: <20021008203120.K97120@espresso.q9media.com> In-Reply-To: <15779.30643.68675.577669@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Tue, Oct 08, 2002 at 08:26:27PM -0400 References: <15779.30643.68675.577669@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Gallatin <gallatin@cs.duke.edu> writes: > > What's the accepted way to printf something (like sizeof()) which > boils down to "unsigned int" on x86 and "unsigned long" on the LP64 > platforms? In userland you can use %z for printing size_t's. In the kernel, casting to intmax_t/uintmax_t and using %j is correct. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021008203120.K97120>