diff options
author | Mikulas Patocka <mikulas@twibright.com> | 2018-02-13 01:42:41 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2018-02-20 09:36:45 -0800 |
commit | 97c801e49251ffedf0eebd0563c737318433f114 (patch) | |
tree | 0c783ad003bdf5289d3e3b12e04a1c30bb0d7cb3 /src/mga_g450pll.c | |
parent | 767c19e7142da1060586b1ff2b5e7253b6d6276b (diff) |
mga_drv: fix warning
Fix warnings in the MGA driver. There's no functional change.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Diffstat (limited to 'src/mga_g450pll.c')
-rw-r--r-- | src/mga_g450pll.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mga_g450pll.c b/src/mga_g450pll.c index 293178c..ae6e1a1 100644 --- a/src/mga_g450pll.c +++ b/src/mga_g450pll.c @@ -134,7 +134,7 @@ static CARD32 G450FindNextPLLParam(ScrnInfoPtr pScrn, CARD32 ulFout, *pulPLLMNP |= (CARD32)ucP; #ifdef DEBUG - ErrorF("FINS_S: VCO = %d, S = %02X, *pulPLLMNP = %08X\n", ulVCO, (ULONG)ucS, *pulPLLMNP); + ErrorF("FINS_S: VCO = %d, S = %02X, *pulPLLMNP = %08X\n", (unsigned)ulVCO, (unsigned)ucS, (unsigned)*pulPLLMNP); #endif } @@ -315,7 +315,7 @@ double MGAG450SetPLLFreq(ScrnInfoPtr pScrn, long f_out) MGAPtr pMga = MGAPTR(pScrn); #ifdef DEBUG - xf86DrvMsg(pScrn->scrnIndex,X_INFO, "Restoring PLLClk = %d\n",f_out); + xf86DrvMsg(pScrn->scrnIndex,X_INFO, "Restoring PLLClk = %ld\n", f_out); #endif G450FindFirstPLLParam(pScrn, f_out, &ulMNP); ulMNPTable[0] = ulMNP; @@ -489,7 +489,7 @@ MGAG450SavePLLFreq(ScrnInfoPtr pScrn) G450ApplyPFactor(pScrn, ucP, &freq); #ifdef DEBUG - xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Saved PLLClk = %d\n",freq); + xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Saved PLLClk = %u\n", (unsigned)freq); #endif return freq; } @@ -506,7 +506,7 @@ MGAG450PrintPLL(ScrnInfoPtr pScrn) ucP = (CARD8)(ulMNP & 0x03); G450ApplyPFactor(pScrn, ucP, &freq); - xf86DrvMsg(pScrn->scrnIndex,X_INFO,"MGAGClock = %d -- MNP = 0x%x\n", - freq,ulMNP); + xf86DrvMsg(pScrn->scrnIndex,X_INFO,"MGAGClock = %u -- MNP = 0x%x\n", + (unsigned)freq, (unsigned)ulMNP); } #endif |