Date: Wed, 09 Jul 2008 21:50:30 -0600 From: Scott Long <scottl@samsco.org> To: David Christensen <davidch@broadcom.com> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: Proper Printf Format for Printing Physical Addresses on 32 and 64 bit Systems Message-ID: <48758706.6040900@samsco.org> In-Reply-To: <5D267A3F22FD854F8F48B3D2B52381932677CC83F1@IRVEXCHCCR01.corp.ad.broadcom.com> References: <5D267A3F22FD854F8F48B3D2B52381932677CC83F1@IRVEXCHCCR01.corp.ad.broadcom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Christensen wrote: > I have some debugging code in my network driver and I'd like > to print out the physical address of a memory block. What's > the right way to use a printf() that works on both 32 and 64 > bit platforms? > > Dave > > Cast it to a uintmax_t and use %ju or %jx Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48758706.6040900>