From 33525540f3a9d6760c6edcfe765d2a004a6b894f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 15 Jun 2006 21:03:01 +1000 Subject: fix more printf formats --- src/radeon.h | 2 +- src/radeon_accel.c | 4 ++-- src/radeon_commonfuncs.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/radeon.h b/src/radeon.h index 78150ce2..e45ade1b 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -892,7 +892,7 @@ do { \ #define BEGIN_RING(n) do { \ if (RADEON_VERBOSE) { \ xf86DrvMsg(pScrn->scrnIndex, X_INFO, \ - "BEGIN_RING(%d) in %s\n", n, __FUNCTION__); \ + "BEGIN_RING(%d) in %s\n", (unsigned int)n, __FUNCTION__);\ } \ if (++info->dma_begin_count != 1) { \ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, \ diff --git a/src/radeon_accel.c b/src/radeon_accel.c index 19f7bf1b..4c4a0f61 100644 --- a/src/radeon_accel.c +++ b/src/radeon_accel.c @@ -133,7 +133,7 @@ void RADEONWaitForFifoFunction(ScrnInfoPtr pScrn, int entries) INREG(RADEON_RBBM_STATUS) & RADEON_RBBM_FIFOCNT_MASK; if (info->fifo_slots >= entries) return; } - RADEONTRACE(("FIFO timed out: %d entries, stat=0x%08x\n", + RADEONTRACE(("FIFO timed out: %ld entries, stat=0x%08lx\n", INREG(RADEON_RBBM_STATUS) & RADEON_RBBM_FIFOCNT_MASK, INREG(RADEON_RBBM_STATUS))); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, @@ -164,7 +164,7 @@ void RADEONEngineFlush(ScrnInfoPtr pScrn) break; } if (i == RADEON_TIMEOUT) { - RADEONTRACE(("DC flush timeout: %x\n", + RADEONTRACE(("DC flush timeout: %lx\n", INREG(RADEON_RB3D_DSTCACHE_CTLSTAT))); } } diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c index 7b720043..bbf111e8 100644 --- a/src/radeon_commonfuncs.c +++ b/src/radeon_commonfuncs.c @@ -171,7 +171,7 @@ void FUNC_NAME(RADEONWaitForIdle)(ScrnInfoPtr pScrn) return; } } - RADEONTRACE(("Idle timed out: %d entries, stat=0x%08x\n", + RADEONTRACE(("Idle timed out: %ld entries, stat=0x%08lx\n", INREG(RADEON_RBBM_STATUS) & RADEON_RBBM_FIFOCNT_MASK, INREG(RADEON_RBBM_STATUS))); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, -- cgit v1.2.3