From abbafe6db7c0d24efc61a05950d4214c00d3f043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 4 Oct 2007 11:33:09 +0200 Subject: radeon: Fix compile warnings. --- src/radeon_bios.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/radeon_bios.c b/src/radeon_bios.c index d5b7f5e..65c2bb0 100644 --- a/src/radeon_bios.c +++ b/src/radeon_bios.c @@ -765,7 +765,7 @@ Bool RADEONInitExtTMDSInfoFromBIOS (xf86OutputPtr output) val = RADEON_BIOS32(index); index += 4; ErrorF("WRITE INDEXED: 0x%x 0x%x\n", - reg, (unsigned)val); + (unsigned)reg, (unsigned)val); /*OUTREG(reg, val);*/ break; case 2: @@ -777,13 +777,13 @@ Bool RADEONInitExtTMDSInfoFromBIOS (xf86OutputPtr output) val = INREG(reg); val = (val & andmask) | ormask; ErrorF("MASK DIRECT: 0x%x 0x%x 0x%x\n", - reg, (unsigned)andmask, (unsigned)ormask); + (unsigned)reg, (unsigned)andmask, (unsigned)ormask); /*OUTREG(reg, val);*/ break; case 4: val = RADEON_BIOS16(index); index += 2; - ErrorF("delay: %d\n", val); + ErrorF("delay: %u\n", (unsigned)val); usleep(val); break; case 5: @@ -793,7 +793,7 @@ Bool RADEONInitExtTMDSInfoFromBIOS (xf86OutputPtr output) ormask = RADEON_BIOS32(index); index += 4; ErrorF("MASK PLL: 0x%x 0x%x 0x%x\n", - reg, (unsigned)andmask, (unsigned)ormask); + (unsigned)reg, (unsigned)andmask, (unsigned)ormask); /*val = INPLL(pScrn, reg); val = (val & andmask) | ormask; OUTPLL(pScrn, reg, val);*/ @@ -802,7 +802,8 @@ Bool RADEONInitExtTMDSInfoFromBIOS (xf86OutputPtr output) reg = id & 0x1fff; val = RADEON_BIOS8(index); index += 1; - ErrorF("i2c write: 0x%x, 0x%x\n", reg, val); + ErrorF("i2c write: 0x%x, 0x%x\n", (unsigned)reg, + (unsigned)val); RADEONDVOWriteByte(radeon_output->DVOChip, reg, val); break; default: -- cgit v1.2.3