[PATCH xf86-video-r128] Remove compilation warnings related to debug messages

Kevin Brace kevinbrace at gmx.com
Sun Jul 1 04:01:34 UTC 2018


The variable sizes were not matching the intended print format.

Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/r128_accel.c  | 8 ++++----
 src/r128_driver.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/r128_accel.c b/src/r128_accel.c
index ab04b25..0ad4edc 100644
--- a/src/r128_accel.c
+++ b/src/r128_accel.c
@@ -184,8 +184,8 @@ void R128WaitForFifoFunction(ScrnInfoPtr pScrn, int entries)
 	}
 
     DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
-                   "FIFO timed out: %d entries, "
-                    "stat=0x%08x, probe=0x%08x\n",
+                    "FIFO timed out: %lu entries, "
+                    "stat = 0x%08lx, probe = 0x%08lx\n",
                     INREG(R128_GUI_STAT) & R128_GUI_FIFOCNT_MASK,
                     INREG(R128_GUI_STAT),
                     INREG(R128_GUI_PROBE)));
@@ -221,8 +221,8 @@ void R128WaitForIdle(ScrnInfoPtr pScrn)
 	}
 
     DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
-                        "Idle timed out: %d entries, "
-                        "stat=0x%08x, probe=0x%08x\n",
+                        "Idle timed out: %lu entries, "
+                        "stat = 0x%08lx, probe = 0x%08lx\n",
                         INREG(R128_GUI_STAT) & R128_GUI_FIFOCNT_MASK,
                         INREG(R128_GUI_STAT),
                         INREG(R128_GUI_PROBE)));
diff --git a/src/r128_driver.c b/src/r128_driver.c
index c6d4f8a..4918a0e 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -1604,7 +1604,7 @@ Bool R128ScreenInit(SCREEN_INIT_ARGS_DECL)
     char *optstr;
 
     DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
-                        "R128ScreenInit %x %d\n",
+                        "R128ScreenInit %lx %lx\n",
                         pScrn->memPhysBase, pScrn->fbOffset));
     info->useEXA = FALSE;
 #ifdef USE_EXA
-- 
2.7.4



More information about the xorg-driver-ati mailing list