diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2018-06-30 22:56:27 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2018-07-09 15:35:05 -0700 |
commit | 09f14ae89073c31118b747b8cd3663d4da9aa170 (patch) | |
tree | 784c5b55038f3c6795553ba3e40a8e8407492ae3 | |
parent | 951af95a6ddb07b13304632eb4faf8b1256399a7 (diff) |
Remove compilation warnings related to debug messages
The variable sizes were not matching the intended print format.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | src/r128_accel.c | 8 | ||||
-rw-r--r-- | 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 |