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

From: Peter Jeremy <peterjeremy_at_optushome.com.au>
Date: Thu, 10 Jul 2008 13:54:03 +1000
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.

Received on Thu Jul 10 2008 - 01:54:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC