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

David Christensen davidch at broadcom.com
Thu Jul 10 01:14:40 UTC 2008


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




More information about the freebsd-current mailing list