Proper Printf Format for Printing Physical Addresses on 32 and 64 bit Systems

Peter Jeremy peterjeremy at optushome.com.au
Thu Jul 10 03:54:09 UTC 2008


On 2008-Jul-09 18:00:45 -0700, David Christensen <davidch at broadcom.com> 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?

%p - see printf(3) or printf(9)

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080710/6589e447/attachment.pgp


More information about the freebsd-current mailing list