summaryrefslogtreecommitdiff
path: root/src/mga_dri.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-09-09 23:15:45 +0000
committerIan Romanick <idr@us.ibm.com>2005-09-09 23:15:45 +0000
commitd3a3818010a620ae57dd6831466ce9cd4137b28f (patch)
tree18df17877ec67ede6c9018715b951a68f19ce7f3 /src/mga_dri.c
parent000f59ff4686d1dbda673bf5a700f33615f9eb89 (diff)
Clean up some warnings. Fix some '#ifdef USEMGAHAL' issues that had causedXORG-6_8_99_901
the number of curl-braces to be unbalanced.
Diffstat (limited to 'src/mga_dri.c')
-rw-r--r--src/mga_dri.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mga_dri.c b/src/mga_dri.c
index c1c357f..7fd5868 100644
--- a/src/mga_dri.c
+++ b/src/mga_dri.c
@@ -732,7 +732,8 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] %d kB allocated with handle 0x%08x\n",
- pMGADRIServer->agp.size/1024, pMGADRIServer->agp.handle );
+ pMGADRIServer->agp.size/1024,
+ (unsigned int) pMGADRIServer->agp.handle );
if ( drmAgpBind( pMga->drmFD, pMGADRIServer->agp.handle, 0 ) < 0 ) {
xf86DrvMsg( pScreen->myNum, X_ERROR, "[agp] Could not bind memory\n" );
@@ -754,7 +755,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] WARP microcode handle = 0x%08x\n",
- pMGADRIServer->warp.handle );
+ (unsigned int) pMGADRIServer->warp.handle );
/* Primary DMA space
*/
@@ -769,7 +770,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] Primary DMA handle = 0x%08x\n",
- pMGADRIServer->primary.handle );
+ (unsigned int) pMGADRIServer->primary.handle );
/* DMA buffers
*/
@@ -784,7 +785,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] DMA buffers handle = 0x%08x\n",
- pMGADRIServer->buffers.handle );
+ (unsigned int) pMGADRIServer->buffers.handle );
count = drmAddBufs( pMga->drmFD,
MGA_NUM_BUFFERS, MGA_BUFFER_SIZE,
@@ -816,7 +817,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] agpTexture handle = 0x%08x\n",
- pMGADRIServer->agpTextures.handle );
+ (unsigned int) pMGADRIServer->agpTextures.handle );
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] agpTexture size: %d kb\n", pMGADRIServer->agpTextures.size/1024 );
@@ -833,7 +834,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[drm] Registers handle = 0x%08x\n",
- pMGADRIServer->registers.handle );
+ (unsigned int) pMGADRIServer->registers.handle );
pMGADRIServer->status.size = SAREA_MAX;
@@ -846,7 +847,7 @@ static Bool MGADRIBootstrapDMA(ScreenPtr pScreen)
}
xf86DrvMsg( pScreen->myNum, X_INFO,
"[drm] Status handle = 0x%08x\n",
- pMGADRIServer->status.handle );
+ (unsigned int) pMGADRIServer->status.handle );
}
return TRUE;