diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-04-10 11:26:06 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-04-10 11:26:06 -0700 |
commit | 39bdfbb4c23c9ba2a44888f22330a892c4becedc (patch) | |
tree | 946aceac17733ad28a20a93ff04ef20eab49e32a | |
parent | 35e4756645891bfc85f25f1ab60c287eba9ef749 (diff) |
x86_64 warning fixes
-rw-r--r-- | src/i810_dri.c | 37 | ||||
-rw-r--r-- | src/i810_driver.c | 15 | ||||
-rw-r--r-- | src/i810_hwmc.c | 4 | ||||
-rw-r--r-- | src/i830_cursor.c | 4 | ||||
-rw-r--r-- | src/i830_dri.c | 25 | ||||
-rw-r--r-- | src/i830_driver.c | 45 | ||||
-rw-r--r-- | src/i830_modes.c | 8 |
7 files changed, 84 insertions, 54 deletions
diff --git a/src/i810_dri.c b/src/i810_dri.c index f75e88c3..8c05980d 100644 --- a/src/i810_dri.c +++ b/src/i810_dri.c @@ -485,7 +485,8 @@ I810DRIScreenInit(ScreenPtr pScreen) pI810DRI->regsSize = I810_REG_SIZE; if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->MMIOAddr, - pI810DRI->regsSize, DRM_REGISTERS, 0, &pI810DRI->regs) < 0) { + pI810DRI->regsSize, DRM_REGISTERS, 0, + (drmAddress) &pI810DRI->regs) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(regs) failed\n"); DRICloseScreen(pScreen); return FALSE; @@ -526,7 +527,8 @@ I810DRIScreenInit(ScreenPtr pScreen) * under the DRI. */ - drmAgpAlloc(pI810->drmSubFD, 4096 * 1024, 1, NULL, &dcacheHandle); + drmAgpAlloc(pI810->drmSubFD, 4096 * 1024, 1, NULL, + (drmAddress) &dcacheHandle); pI810->dcacheHandle = dcacheHandle; xf86DrvMsg(pScreen->myNum, X_INFO, "[agp] dcacheHandle : 0x%x\n", @@ -630,7 +632,8 @@ I810DRIScreenInit(ScreenPtr pScreen) "[agp] GART: no dcache memory found\n"); } - drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL, &agpHandle); + drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL, + (drmAddress) &agpHandle); pI810->backHandle = agpHandle; if (agpHandle != DRM_AGP_NO_HANDLE) { @@ -656,7 +659,8 @@ I810DRIScreenInit(ScreenPtr pScreen) } if (dcacheHandle == DRM_AGP_NO_HANDLE) { - drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL, &agpHandle); + drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL, + (drmAddress) &agpHandle); pI810->zHandle = agpHandle; @@ -685,7 +689,8 @@ I810DRIScreenInit(ScreenPtr pScreen) /* Now allocate and bind the agp space. This memory will include the * regular framebuffer as well as texture memory. */ - drmAgpAlloc(pI810->drmSubFD, sysmem_size, 0, NULL, &agpHandle); + drmAgpAlloc(pI810->drmSubFD, sysmem_size, 0, NULL, + (drmAddress)&agpHandle); pI810->sysmemHandle = agpHandle; if (agpHandle != DRM_AGP_NO_HANDLE) { @@ -728,7 +733,8 @@ I810DRIScreenInit(ScreenPtr pScreen) pI810->MC.Size = 8 * 1024 * 1024; pI810->MC.Start = pI810->FbMapSize - 8 * 1024 * 1024; } - drmAgpAlloc(pI810->drmSubFD, pI810->MC.Size, 0, NULL, &agpHandle); + drmAgpAlloc(pI810->drmSubFD, pI810->MC.Size, 0, NULL, + (drmAddress) &agpHandle); pI810->xvmcHandle = agpHandle; @@ -753,7 +759,8 @@ I810DRIScreenInit(ScreenPtr pScreen) } drmAgpAlloc(pI810->drmSubFD, 4096, 2, - (unsigned long *)&pI810->CursorPhysical, &agpHandle); + (unsigned long *)&pI810->CursorPhysical, + (drmAddress) &agpHandle); pI810->cursorHandle = agpHandle; @@ -777,7 +784,8 @@ I810DRIScreenInit(ScreenPtr pScreen) } drmAgpAlloc(pI810->drmSubFD, 16384, 2, - (unsigned long *)&pI810->CursorARGBPhysical, &agpHandle); + (unsigned long *)&pI810->CursorARGBPhysical, + (drmAddress) &agpHandle); pI810->cursorARGBHandle = agpHandle; @@ -855,7 +863,7 @@ I810DRIScreenInit(ScreenPtr pScreen) if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->BackBuffer.Start, pI810->BackBuffer.Size, DRM_AGP, 0, - &pI810DRI->backbuffer) < 0) { + (drmAddress) &pI810DRI->backbuffer) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(backbuffer) failed. Disabling DRI\n"); DRICloseScreen(pScreen); @@ -865,7 +873,7 @@ I810DRIScreenInit(ScreenPtr pScreen) pI810DRI->depthbufferSize = pI810->DepthBuffer.Size; if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->DepthBuffer.Start, pI810->DepthBuffer.Size, DRM_AGP, 0, - &pI810DRI->depthbuffer) < 0) { + (drmAddress) &pI810DRI->depthbuffer) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(depthbuffer) failed. Disabling DRI.\n"); DRICloseScreen(pScreen); @@ -894,7 +902,8 @@ I810DRIScreenInit(ScreenPtr pScreen) return FALSE; } if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->BufferMem.Start, - pI810->BufferMem.Size, DRM_AGP, 0, &pI810->buffer_map) < 0) { + pI810->BufferMem.Size, DRM_AGP, 0, + (drmAddress) &pI810->buffer_map) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(buffer_map) failed. Disabling DRI.\n"); DRICloseScreen(pScreen); @@ -905,7 +914,8 @@ I810DRIScreenInit(ScreenPtr pScreen) pI810DRI->agp_buf_size = pI810->BufferMem.Size; if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->LpRing->mem.Start, - pI810->LpRing->mem.Size, DRM_AGP, 0, &pI810->ring_map) < 0) { + pI810->LpRing->mem.Size, DRM_AGP, 0, + (drmAddress) &pI810->ring_map) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(ring_map) failed. Disabling DRI.\n"); DRICloseScreen(pScreen); @@ -933,7 +943,8 @@ I810DRIScreenInit(ScreenPtr pScreen) I810AllocLow(&(pI810->TexMem), &(pI810->SysMem), pI810DRI->textureSize); if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->TexMem.Start, - pI810->TexMem.Size, DRM_AGP, 0, &pI810DRI->textures) < 0) { + pI810->TexMem.Size, DRM_AGP, 0, + (drmAddress) &pI810DRI->textures) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(textures) failed. Disabling DRI.\n"); DRICloseScreen(pScreen); diff --git a/src/i810_driver.c b/src/i810_driver.c index 6fdeaf0d..06615389 100644 --- a/src/i810_driver.c +++ b/src/i810_driver.c @@ -1221,21 +1221,24 @@ I810PrintErrorState(ScrnInfoPtr pScrn) I810Ptr pI810 = I810PTR(pScrn); ErrorF("pgetbl_ctl: 0x%lx pgetbl_err: 0x%lx\n", - INREG(PGETBL_CTL), INREG(PGE_ERR)); + (unsigned long) INREG(PGETBL_CTL), (unsigned long) INREG(PGE_ERR)); - ErrorF("ipeir: %lx iphdr: %lx\n", INREG(IPEIR), INREG(IPEHR)); + ErrorF("ipeir: %lx iphdr: %lx\n", (unsigned long) INREG(IPEIR), + (unsigned long) INREG(IPEHR)); ErrorF("LP ring tail: %lx head: %lx len: %lx start %lx\n", - INREG(LP_RING + RING_TAIL), - INREG(LP_RING + RING_HEAD) & HEAD_ADDR, - INREG(LP_RING + RING_LEN), INREG(LP_RING + RING_START)); + (unsigned long) INREG(LP_RING + RING_TAIL), + (unsigned long) INREG(LP_RING + RING_HEAD) & HEAD_ADDR, + (unsigned long) INREG(LP_RING + RING_LEN), + (unsigned long) INREG(LP_RING + RING_START)); ErrorF("eir: %x esr: %x emr: %x\n", INREG16(EIR), INREG16(ESR), INREG16(EMR)); ErrorF("instdone: %x instpm: %x\n", INREG16(INST_DONE), INREG8(INST_PM)); - ErrorF("memmode: %lx instps: %lx\n", INREG(MEMMODE), INREG(INST_PS)); + ErrorF("memmode: %lx instps: %lx\n", (unsigned long) INREG(MEMMODE), + (unsigned long) INREG(INST_PS)); ErrorF("hwstam: %x ier: %x imr: %x iir: %x\n", INREG16(HWSTAM), INREG16(IER), INREG16(IMR), INREG16(IIR)); diff --git a/src/i810_hwmc.c b/src/i810_hwmc.c index b952d8d3..d56dfc40 100644 --- a/src/i810_hwmc.c +++ b/src/i810_hwmc.c @@ -211,12 +211,12 @@ void I810InitMC(ScreenPtr pScreen) /* Cursor is at a page boundary, Overlay regs are not, don't forget */ if (drmAddMap(pI810->drmSubFD, (drm_handle_t)pI810->CursorStart, - 4096, DRM_AGP, 0, &pI810->overlay_map) < 0) { + 4096, DRM_AGP, 0, (drmAddress) &pI810->overlay_map) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "drmAddMap(overlay) failed\n"); return; } if (drmAddMap(pI810->drmSubFD, (drm_handle_t)pI810->MC.Start, - pI810->MC.Size, DRM_AGP, 0, &pI810->mc_map) < 0) { + pI810->MC.Size, DRM_AGP, 0, (drmAddress) &pI810->mc_map) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "drmAddMap(MC) failed\n"); return; } diff --git a/src/i830_cursor.c b/src/i830_cursor.c index c3e0ff72..e465b98c 100644 --- a/src/i830_cursor.c +++ b/src/i830_cursor.c @@ -362,10 +362,12 @@ I830SetCursorPosition(ScrnInfoPtr pScrn, int x, int y) { I830Ptr pI830 = I830PTR(pScrn); CARD32 temp = 0; - static Bool outsideViewport = FALSE; Bool hide = FALSE, show = FALSE; int oldx = x, oldy = y; int hotspotx = 0, hotspoty = 0; +#if 0 + static Bool outsideViewport = FALSE; +#endif oldx += pScrn->frameX0; /* undo what xf86HWCurs did */ oldy += pScrn->frameY0; diff --git a/src/i830_dri.c b/src/i830_dri.c index e298ae34..e5890c24 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -628,49 +628,49 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea) sarea->front_size, DRM_FRAME_BUFFER, /*DRM_AGP,*/ 0, - &sarea->front_handle) < 0) { + (drmAddress) &sarea->front_handle) < 0) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[drm] drmAddMap(front_handle) failed. Disabling DRI\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Front Buffer = 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Front Buffer = 0x%08x\n", sarea->front_handle); if (drmAddMap(pI830->drmSubFD, (drm_handle_t)(sarea->back_offset + pI830->LinearAddr), sarea->back_size, DRM_AGP, 0, - &sarea->back_handle) < 0) { + (drmAddress) &sarea->back_handle) < 0) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[drm] drmAddMap(back_handle) failed. Disabling DRI\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Back Buffer = 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Back Buffer = 0x%08x\n", sarea->back_handle); if (drmAddMap(pI830->drmSubFD, (drm_handle_t)sarea->depth_offset + pI830->LinearAddr, sarea->depth_size, DRM_AGP, 0, - &sarea->depth_handle) < 0) { + (drmAddress) &sarea->depth_handle) < 0) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[drm] drmAddMap(depth_handle) failed. Disabling DRI\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Depth Buffer = 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Depth Buffer = 0x%08x\n", sarea->depth_handle); if (drmAddMap(pI830->drmSubFD, (drm_handle_t)sarea->tex_offset + pI830->LinearAddr, sarea->tex_size, DRM_AGP, 0, - &sarea->tex_handle) < 0) { + (drmAddress) &sarea->tex_handle) < 0) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[drm] drmAddMap(tex_handle) failed. Disabling DRI\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] textures = 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] textures = 0x%08x\n", sarea->tex_handle); return TRUE; @@ -739,24 +739,25 @@ I830DRIDoMappings(ScreenPtr pScreen) DPRINTF(PFX, "I830DRIDoMappings\n"); pI830DRI->regsSize = I830_REG_SIZE; if (drmAddMap(pI830->drmSubFD, (drm_handle_t)pI830->MMIOAddr, - pI830DRI->regsSize, DRM_REGISTERS, 0, &pI830DRI->regs) < 0) { + pI830DRI->regsSize, DRM_REGISTERS, 0, + (drmAddress) &pI830DRI->regs) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(regs) failed\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08lx\n", + xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n", pI830DRI->regs); if (drmAddMap(pI830->drmSubFD, (drm_handle_t)pI830->LpRing->mem.Start + pI830->LinearAddr, pI830->LpRing->mem.Size, DRM_AGP, 0, - &pI830->ring_map) < 0) { + (drmAddress) &pI830->ring_map) < 0) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(ring_map) failed. Disabling DRI\n"); DRICloseScreen(pScreen); return FALSE; } - xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] ring buffer = 0x%08lx\n", + xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] ring buffer = 0x%08x\n", pI830->ring_map); if (!I830InitDma(pScrn)) { diff --git a/src/i830_driver.c b/src/i830_driver.c index 7ce982f9..053ccd1d 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -471,7 +471,7 @@ GetNextDisplayDeviceList(ScrnInfoPtr pScrn, int toggle) CARD32 VODA = (CARD32)((CARD32*)pVbe->memory)[i]; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Next ACPI _DGS [%d] 0x%lx\n", - i, VODA); + i, (unsigned long) VODA); /* Check if it's a custom Video Output Device Attribute */ if (!(VODA & 0x80000000)) @@ -528,7 +528,8 @@ GetAttachableDisplayDeviceList(ScrnInfoPtr pScrn) for (i=0; i<(pVbe->pInt10->cx & 0xff); i++) xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Attachable device 0x%lx.\n", ((CARD32*)pVbe->memory)[i]); + "Attachable device 0x%lx.\n", + (unsigned long) ((CARD32*)pVbe->memory)[i]); return pVbe->pInt10->cx & 0xffff; } @@ -2888,7 +2889,7 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags) * or, at least it's meant to..... alas it doesn't seem to always work. */ if (pI830->devicePresence) { - int req, att, enc; + int req=0, att=0, enc=0; GetDevicePresence(pScrn, &req, &att, &enc); for (i = 0; i < NumDisplayTypes; i++) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, @@ -4187,10 +4188,12 @@ I830VESASetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode) * Print out the PIPEACONF and PIPEBCONF registers. */ temp = INREG(PIPEACONF); - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "PIPEACONF is 0x%08lx\n", temp); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "PIPEACONF is 0x%08lx\n", + (unsigned long) temp); if (pI830->availablePipes == 2) { temp = INREG(PIPEBCONF); - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "PIPEBCONF is 0x%08lx\n", temp); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "PIPEBCONF is 0x%08lx\n", + (unsigned long) temp); } if (xf86IsEntityShared(pScrn->entityList[0])) { @@ -4418,21 +4421,24 @@ I830PrintErrorState(ScrnInfoPtr pScrn) I830Ptr pI830 = I830PTR(pScrn); ErrorF("pgetbl_ctl: 0x%lx pgetbl_err: 0x%lx\n", - INREG(PGETBL_CTL), INREG(PGE_ERR)); + (unsigned long)INREG(PGETBL_CTL), (unsigned long)INREG(PGE_ERR)); - ErrorF("ipeir: %lx iphdr: %lx\n", INREG(IPEIR), INREG(IPEHR)); + ErrorF("ipeir: %lx iphdr: %lx\n", (unsigned long)INREG(IPEIR), + (unsigned long)INREG(IPEHR)); ErrorF("LP ring tail: %lx head: %lx len: %lx start %lx\n", - INREG(LP_RING + RING_TAIL), - INREG(LP_RING + RING_HEAD) & HEAD_ADDR, - INREG(LP_RING + RING_LEN), INREG(LP_RING + RING_START)); + (unsigned long)INREG(LP_RING + RING_TAIL), + (unsigned long)INREG(LP_RING + RING_HEAD) & HEAD_ADDR, + (unsigned long)INREG(LP_RING + RING_LEN), + (unsigned long)INREG(LP_RING + RING_START)); ErrorF("eir: %x esr: %x emr: %x\n", INREG16(EIR), INREG16(ESR), INREG16(EMR)); ErrorF("instdone: %x instpm: %x\n", INREG16(INST_DONE), INREG8(INST_PM)); - ErrorF("memmode: %lx instps: %lx\n", INREG(MEMMODE), INREG(INST_PS)); + ErrorF("memmode: %lx instps: %lx\n", (unsigned long)INREG(MEMMODE), + (unsigned long)INREG(INST_PS)); ErrorF("hwstam: %x ier: %x imr: %x iir: %x\n", INREG16(HWSTAM), INREG16(IER), INREG16(IMR), INREG16(IIR)); @@ -6000,7 +6006,7 @@ I830CheckDevicesTimer(OsTimerPtr timer, CARD32 now, pointer arg) /* this avoids several BIOS calls if possible */ if (pI830->monitorSwitch != temp || pI830->monitorSwitch != pI830->toggleDevices) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Hotkey switch to 0x%lx.\n", temp); + "Hotkey switch to 0x%lx.\n", (unsigned long) temp); if (pI830->AccelInfoRec && pI830->AccelInfoRec->NeedToSync) { (*pI830->AccelInfoRec->Sync)(pScrn); @@ -6063,7 +6069,8 @@ I830CheckDevicesTimer(OsTimerPtr timer, CARD32 now, pointer arg) } xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Requested display devices 0x%lx.\n", temp); + "Requested display devices 0x%lx.\n", + (unsigned long) temp); /* If the BIOS doesn't flip between CRT, LFP and CRT+LFP we fake @@ -6104,12 +6111,14 @@ I830CheckDevicesTimer(OsTimerPtr timer, CARD32 now, pointer arg) if (temp == pI8301->lastDevice1 || temp == pI8301->lastDevice2) { temp = GetToggleList(pScrn, 1); xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Detected duplicate devices. Toggling (0x%lx)\n", temp); + "Detected duplicate devices. Toggling (0x%lx)\n", + (unsigned long) temp); } xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Detected display change operation (0x%x, 0x%x, 0x%lx).\n", - pI8301->lastDevice1, pI8301->lastDevice2, temp); + pI8301->lastDevice1, pI8301->lastDevice2, + (unsigned long) temp); /* So that if we close on the wrong config, we restore correctly */ pI830->specifiedMonitor = TRUE; @@ -6140,10 +6149,12 @@ I830CheckDevicesTimer(OsTimerPtr timer, CARD32 now, pointer arg) (CountBits((temp & 0xff00) >> 8) > 1)) ) { temp = pI8301->lastDevice2 | pI8301->lastDevice1; xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Cloning failed, " - "trying dual pipe clone mode (0x%lx)\n", temp); + "trying dual pipe clone mode (0x%lx)\n", + (unsigned long) temp); if (!SetDisplayDevices(pScrn, temp)) xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Failed to switch " - "to configured display devices (0x%lx).\n", temp); + "to configured display devices (0x%lx).\n", + (unsigned long) temp); else { pI830->Clone = TRUE; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Setting Clone mode\n"); diff --git a/src/i830_modes.c b/src/i830_modes.c index 8938548a..97e40e0a 100644 --- a/src/i830_modes.c +++ b/src/i830_modes.c @@ -514,7 +514,7 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id, xf86ErrorFVerb(DEBUG_VERB, " WinBSegment: 0x%x\n", mode->WinBSegment); xf86ErrorFVerb(DEBUG_VERB, - " WinFuncPtr: 0x%lx\n", mode->WinFuncPtr); + " WinFuncPtr: 0x%lx\n", (unsigned long)mode->WinFuncPtr); xf86ErrorFVerb(DEBUG_VERB, " BytesPerScanline: %d\n", mode->BytesPerScanline); xf86ErrorFVerb(DEBUG_VERB, @@ -557,7 +557,8 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id, " DirectColorModeInfo: %d\n", mode->DirectColorModeInfo); if (major >= 2) { xf86ErrorFVerb(DEBUG_VERB, - " PhysBasePtr: 0x%lx\n", mode->PhysBasePtr); + " PhysBasePtr: 0x%lx\n", + (unsigned long)mode->PhysBasePtr); if (major >= 3) { xf86ErrorFVerb(DEBUG_VERB, " LinBytesPerScanLine: %d\n", mode->LinBytesPerScanLine); @@ -582,7 +583,8 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id, xf86ErrorFVerb(DEBUG_VERB, " LinRsvdFieldPosition: %d\n", mode->LinRsvdFieldPosition); xf86ErrorFVerb(DEBUG_VERB, - " MaxPixelClock: %ld\n", mode->MaxPixelClock); + " MaxPixelClock: %ld\n", (unsigned long) + mode->MaxPixelClock); } } |