From owner-freebsd-current@FreeBSD.ORG Thu Jul 10 03:54:09 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 937B9106566C for ; Thu, 10 Jul 2008 03:54:09 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4468FC0A for ; Thu, 10 Jul 2008 03:54:08 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m6A3s3x4002801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Jul 2008 13:54:04 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m6A3s38N084305; Thu, 10 Jul 2008 13:54:03 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m6A3s3ox084304; Thu, 10 Jul 2008 13:54:03 +1000 (EST) (envelope-from peter) Date: Thu, 10 Jul 2008 13:54:03 +1000 From: Peter Jeremy To: David Christensen Message-ID: <20080710035403.GZ62764@server.vk2pj.dyndns.org> References: <5D267A3F22FD854F8F48B3D2B52381932677CC83F1@IRVEXCHCCR01.corp.ad.broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yr/DzoowOgTDcSCF" Content-Disposition: inline In-Reply-To: <5D267A3F22FD854F8F48B3D2B52381932677CC83F1@IRVEXCHCCR01.corp.ad.broadcom.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: "freebsd-current@freebsd.org" Subject: Re: Proper Printf Format for Printing Physical Addresses on 32 and 64 bit Systems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 03:54:09 -0000 --yr/DzoowOgTDcSCF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Jul-09 18:00:45 -0700, David Christensen wro= te: >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) --=20 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. --yr/DzoowOgTDcSCF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkh1h9sACgkQ/opHv/APuIfsqgCfZuR8fkl3i8jj6asBMlghk1OE TR4AnRlSz2E6QiE3qPGvPHQLg8UytjK6 =CSXz -----END PGP SIGNATURE----- --yr/DzoowOgTDcSCF--