From 8d7aa6b2d916317ae39cf79f8a99b16f3e971f57 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 7 Mar 2008 18:03:42 -0300 Subject: [PATCH] Compile warning fixes. Add missing prototypes and use proper printf format for unsigned long arguments. --- src/newport.h | 3 +++ src/newport_accel.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/newport.h b/src/newport.h index f7354e9..b0f5c40 100644 --- a/src/newport.h +++ b/src/newport.h @@ -174,4 +174,7 @@ void NewportRefreshArea24(ScrnInfoPtr pScrn, int num, BoxPtr pbox); Bool NewportHWCursorInit(ScreenPtr pScreen); void NewportLoadCursorImage(ScrnInfoPtr pScrn, unsigned char *bits); +/* newport_accel.c */ +Bool NewportXAAScreenInit(ScreenPtr pScreen); + #endif /* __NEWPORT_H__ */ diff --git a/src/newport_accel.c b/src/newport_accel.c index 450c88a..bec3698 100644 --- a/src/newport_accel.c +++ b/src/newport_accel.c @@ -1812,11 +1812,11 @@ NewportXAAScreenInit(ScreenPtr pScreen) pNewport->clipey = pScrn->virtualY-1; pNewport->skipleft = 0; - BARF1("CLIPMODE %08X\n", pNewportRegs->cset.clipmode); - BARF1("XYWIN %08X\n", pNewportRegs->cset.xywin); - BARF1("CONFIG %08X\n", pNewportRegs->cset.config); - BARF1("SMASK0X %08X\n", pNewportRegs->set.smask0x); - BARF1("SMASK0Y %08X\n", pNewportRegs->set.smask0y); + BARF1("CLIPMODE %08lX\n", pNewportRegs->cset.clipmode); + BARF1("XYWIN %08lX\n", pNewportRegs->cset.xywin); + BARF1("CONFIG %08lX\n", pNewportRegs->cset.config); + BARF1("SMASK0X %08lX\n", pNewportRegs->set.smask0x); + BARF1("SMASK0Y %08lX\n", pNewportRegs->set.smask0y); /* set GIO bus timeout to highest possible value 4.32us @@ -1834,7 +1834,7 @@ NewportXAAScreenInit(ScreenPtr pScreen) pNewportRegs->cset.config = conf; } - BARF1("CONFIG %08X\n", pNewportRegs->cset.config); + BARF1("CONFIG %08lX\n", pNewportRegs->cset.config); pNewport->shadow_clipmode = pNewportRegs->cset.clipmode; pNewportRegs->cset.clipmode |= 1; /* enable clipping mask 0 */ -- 1.5.4.3