[PATCH xf86-video-mga 2/9] fix formats in xf86DrvMsg()

Nicolas Kaiser nikai at nikai.net
Wed Jun 8 02:00:16 PDT 2011


Silences compile warnings
"src/mga_exa.c:869: warning: format '%x' expects type
'unsigned int', but argument 5 has type 'long unsigned int'"
and
"src/mga_exa.c:869: warning: format '%x' expects type
'unsigned int', but argument 6 has type 'long unsigned int'"

Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
 src/mga_exa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mga_exa.c b/src/mga_exa.c
index f292327..e5eaa92 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -865,7 +865,7 @@ mgaExaInit(ScreenPtr pScreen)
 
     xf86DrvMsg(pScrn->scrnIndex, X_INFO, "X %d Y %d bpp %d\n",
                pScrn->virtualX, pScrn->virtualY, pScrn->bitsPerPixel);
-    xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Start at %p, size %x, osb %x\n",
+    xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Start at %p, size %lx, osb %lx\n",
                pExa->memoryBase, pExa->memorySize, pExa->offScreenBase);
 
     /* In PW24 mode, we need to align to "3 64-bytes" */
-- 
1.7.5.3


More information about the xorg-devel mailing list