diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-08-24 09:21:14 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-08-24 09:21:14 +0200 |
commit | d7230939f523610c57f92bdfc72966bdbc6f1070 (patch) | |
tree | d955258ea262e564ec5db7887adf763af0908276 /src/atidri.c | |
parent | 91c45fedfd155a153dcd2c3f3e30986bfbd44e6f (diff) |
64 bit warning fixes.
For printf vs. CARD32, use %u or %x and and a cast to unsigned.
Diffstat (limited to 'src/atidri.c')
-rw-r--r-- | src/atidri.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/atidri.c b/src/atidri.c index d4fbeadb..07adda7d 100644 --- a/src/atidri.c +++ b/src/atidri.c @@ -1269,9 +1269,10 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen ) ErrorF( "[dri] Data does not fit in SAREA\n" ); return FALSE; } - xf86DrvMsg( pScreenInfo->scrnIndex, X_INFO, "[drm] SAREA %d+%d: %d\n", - sizeof(XF86DRISAREARec), sizeof(ATISAREAPrivRec), - sizeof(XF86DRISAREARec) + sizeof(ATISAREAPrivRec) ); + xf86DrvMsg( pScreenInfo->scrnIndex, X_INFO, "[drm] SAREA %u+%u: %u\n", + (unsigned)sizeof(XF86DRISAREARec), + (unsigned)sizeof(ATISAREAPrivRec), + (unsigned)(sizeof(XF86DRISAREARec) + sizeof(ATISAREAPrivRec)) ); pDRIInfo->SAREASize = SAREA_MAX; pATIDRI = (ATIDRIPtr) xnfcalloc( sizeof(ATIDRIRec), 1 ); |