On Tue, 2011-03-15 at 08:35 -0700, Keith Packard wrote: > On Tue, 15 Mar 2011 11:05:04 -0400, Adam Jackson <a...@redhat.com> wrote: > > > - ErrorF("[dix] AddResource(%lx, %lx, %lx), client=%d \n", > > - (unsigned long)id, type, (unsigned long)value, client); > > + ErrorF("[dix] AddResource(%x, %x, %lx), client=%d \n", > > + id, type, (unsigned long)value, client); > > <bikeshed> > I hate printf. This does assume that XID is the same as 'unsigned int' > on all machines. I think XID is still 'unsigned long' on 32-bit > machines, right? We could use %lx and a cast to unsigned long > everywhere... > </bikeshed>
That printf lacks format specifiers for stdint.h is a pretty fantastic bug, yeah. Almost as fantastic as varying the typedef for XID across platforms. So, the XID typedef lives in Xdefs.h, which we can't really change because it's also included client-side. But Xdefs.h defines remarkably little, and we don't actually include it from that many places in the server. I'll rework this so we no longer include it, so XID can be sanely typed in the server (ie, uint32_t). It'll be like the future. - ajax
signature.asc
Description: This is a digitally signed message part
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel