diff options
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r-- | src/nv_driver.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 61c89e3..f437bee 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -1718,9 +1718,8 @@ NVMapMem(ScrnInfoPtr pScrn) return FALSE; } xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Allocated %lldMiB VRAM for framebuffer + offscreen pixmaps\n", - pNv->FB->size >> 20 - ); + "Allocated %dMiB VRAM for framebuffer + offscreen pixmaps\n", + (unsigned int)(pNv->FB->size >> 20)); /*XXX: have to get these after we've allocated something, otherwise * they're uninitialised in the DRM! @@ -1733,8 +1732,9 @@ NVMapMem(ScrnInfoPtr pScrn) if (pNv->AGPSize) { int gart_scratch_size; - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "AGP: %dMiB available\n", - (unsigned int)pNv->AGPSize >> 20); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "GART: %dMiB available\n", + (unsigned int)(pNv->AGPSize >> 20)); if (pNv->AGPSize > (16*1024*1024)) gart_scratch_size = 16*1024*1024; @@ -1743,14 +1743,15 @@ NVMapMem(ScrnInfoPtr pScrn) pNv->AGPScratch = NVAllocateMemory(pNv, NOUVEAU_MEM_AGP, gart_scratch_size); - if (!pNv->AGPScratch) + if (!pNv->AGPScratch) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, - "Unable to allocate AGP memory\n"); - else + "Unable to allocate GART memory\n"); + } else { xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "AGP: mapped %dMiB at %p\n", - (unsigned int)pNv->AGPScratch->size>>20, - pNv->AGPScratch->map); + "GART: mapped %dMiB at %p\n", + (unsigned int)(pNv->AGPScratch->size >> 20), + pNv->AGPScratch->map); + } } pNv->Cursor = NVAllocateMemory(pNv, NOUVEAU_MEM_FB, 64*1024); |