[PATCH] Use PRId32/PRIx32 from inttypes.h for printf of CARD32 values.
Alan.Coopersmith at Sun.COM
Mon Oct 5 07:46:06 PDT 2009
Daniel Stone wrote:
> On Sat, Oct 03, 2009 at 06:12:54PM -0700, Jamey Sharp wrote:
>> On Sat, Oct 3, 2009 at 6:06 PM, Daniel Stone <daniel at fooishbar.org> wrote:
>>> On Fri, Oct 02, 2009 at 01:42:46PM -0700, Jamey Sharp wrote:
>>>> + ErrorF(" rep_insb(%#x) %" PRId32 " bytes at %8.8" PRIx32 " %s\n",
>>> Is this portable beyond glibc? Alan? Matthieu?
>> It's standardized in C99 and available in many implementations
>> earlier, I thought. Good enough? Certainly it's an easy definition to
>> duplicate if the system doesn't have it already.
> Our usual litmus test is: glibc 2.x, Solaris 9/10, current OS X, plus
> some mystical combination of BSD; i.e., will it build on our current
> usefully-supported platforms.
Solaris seems to have had this defined in headers since support for
the C99 draft inttypes.h was added in 1996:
#define PRId32 "d"
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the xorg-devel