[Openchrome-devel] [PATCH 9/9] Fix format warnings
Xavier Bachelot
xavier at bachelot.org
Fri Aug 5 23:15:05 UTC 2016
Signed-off-by: Xavier Bachelot <xavier at bachelot.org>
---
src/via_display.c | 8 ++++----
src/via_ums.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/via_display.c b/src/via_display.c
index e772c7c..9076de8 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -830,11 +830,11 @@ viaIGA1SetFBStartingAddress(xf86CrtcPtr crtc, int
x, int y)
Base = (y * pScrn->displayWidth + x) * (pScrn->bitsPerPixel / 8);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Base Address: 0x%lx\n",
+ "Base Address: 0x%x\n",
Base));
Base = (Base + drmmode->front_bo->offset) >> 1;
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "DRI Base Address: 0x%lx\n",
+ "DRI Base Address: 0x%x\n",
Base);
hwp->writeCrtc(hwp, 0x0D, Base & 0xFF);
@@ -2071,11 +2071,11 @@ viaIGA2SetFBStartingAddress(xf86CrtcPtr crtc,
int x, int y)
Base = (y * pScrn->displayWidth + x) * (pScrn->bitsPerPixel / 8);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Base Address: 0x%lx\n",
+ "Base Address: 0x%x\n",
Base));
Base = (Base + drmmode->front_bo->offset) >> 3;
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "DRI Base Address: 0x%lx\n",
+ "DRI Base Address: 0x%x\n",
Base);
tmp = hwp->readCrtc(hwp, 0x62) & 0x01;
diff --git a/src/via_ums.c b/src/via_ums.c
index 92b2cb5..e6e203d 100644
--- a/src/via_ums.c
+++ b/src/via_ums.c
@@ -186,7 +186,7 @@ viaMapMMIO(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
"Mapping the frame buffer at address 0x%lX with "
- "size %u KB.\n",
+ "size %lu KB.\n",
pVia->FrameBufferBase, pVia->videoRambytes / 1024);
#ifdef HAVE_PCIACCESS
--
2.7.4
More information about the Openchrome-devel
mailing list