summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 17:36:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 17:40:38 -0800
commit04137c3a614f2c8477877c6925e6aa657954c47d (patch)
treedf7262b6a14f7b96d2f4db0060fa6b348807f427 /src
parente9ed4a875524c7d0876612e561ee9868da5a01d3 (diff)
Fix -Wformat warnings about integer size of arguments
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/savage_dri.c4
-rw-r--r--src/savage_video.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_dri.c b/src/savage_dri.c
index e8a461b..a30e727 100644
--- a/src/savage_dri.c
+++ b/src/savage_dri.c
@@ -733,8 +733,8 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen )
xf86DrvMsg( pScrn->scrnIndex, X_INFO,
"[drm] Sarea %d+%d: %d\n",
- sizeof(XF86DRISAREARec), sizeof(SAVAGESAREAPrivRec),
- sizeof(XF86DRISAREARec) + sizeof(SAVAGESAREAPrivRec) );
+ (int) sizeof(XF86DRISAREARec), (int) sizeof(SAVAGESAREAPrivRec),
+ (int) (sizeof(XF86DRISAREARec) + sizeof(SAVAGESAREAPrivRec)) );
pDRIInfo->SAREASize = SAREA_MAX;
diff --git a/src/savage_video.c b/src/savage_video.c
index e155138..52a8b05 100644
--- a/src/savage_video.c
+++ b/src/savage_video.c
@@ -304,9 +304,9 @@ unsigned int GetBlendForFourCC2000( int id )
void savageOUTREG( SavagePtr psav, unsigned long offset, unsigned long value )
{
ErrorF( "MMIO %08lx, was %08lx, want %08lx,",
- offset, (CARD32)MMIO_IN32( psav->MapBase, offset ), value );
+ offset, (unsigned long)MMIO_IN32( psav->MapBase, offset ), value );
MMIO_OUT32( psav->MapBase, offset, value );
- ErrorF( " now %08lx\n", (CARD32)MMIO_IN32( psav->MapBase, offset ) );
+ ErrorF( " now %08lx\n", (unsigned long)MMIO_IN32( psav->MapBase, offset ) );
}
#if 0