summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-10-03 16:33:31 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-10-03 16:33:31 +0200
commitc4ba15b4871c70cced7f1761e24be692cdb28d2b (patch)
tree9fd290a1f5cc7e7d98fc9e669d7d1cf35412d22c /src/radeon_kms.c
parentcc45856a18dd3e6f7e44d9eb507b31419da70977 (diff)
Fix some compiler warnings.
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index fa493926..94e62720 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -181,7 +181,7 @@ static Bool RADEONIsAccelWorking(ScrnInfoPtr pScrn)
memset(&ginfo, 0, sizeof(ginfo));
ginfo.request = 0x3;
- ginfo.value = (uint64_t)&tmp;
+ ginfo.value = (uintptr_t)&tmp;
r = drmCommandWriteRead(info->dri->drmFD, DRM_RADEON_INFO, &ginfo, sizeof(ginfo));
if (r)
return FALSE;
@@ -434,7 +434,9 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
info->gart_size = mminfo.gart_size;
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"mem size init: gart size :%llx vram size: s:%llx visible:%llx\n",
- mminfo.gart_size, mminfo.vram_size, mminfo.vram_visible);
+ (unsigned long long)mminfo.gart_size,
+ (unsigned long long)mminfo.vram_size,
+ (unsigned long long)mminfo.vram_visible);
}
}
#if 0