xserver/hw/xfree86/ramdac/TI.c:118:12: error: format ‘%d’ expects argument of 
type ‘int’, but argument 4 has type ‘long unsigned int’ [-Werror=format=]
xserver/hw/xfree86/ramdac/TI.c:118:12: error: format ‘%d’ expects argument of 
type ‘int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=]
xserver/hw/xfree86/ramdac/TI.c:118:12: error: format ‘%d’ expects argument of 
type ‘int’, but argument 6 has type ‘long unsigned int’ [-Werror=format=]

Use %lu for an unsigned long

Signed-off-by: Jon TURNEY <jon.tur...@dronecode.org.uk>
---
 hw/xfree86/ramdac/TI.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xfree86/ramdac/TI.c b/hw/xfree86/ramdac/TI.c
index f8081ca..0ae1db5 100644
--- a/hw/xfree86/ramdac/TI.c
+++ b/hw/xfree86/ramdac/TI.c
@@ -114,7 +114,7 @@ TIramdacCalculateMNPForClock(unsigned long RefClock,    /* 
In 100Hz units */
     VCO = 8.0 * IntRef * best_m / best_n;
     ActualClock = VCO / (1 << p);
 
-    DebugF("f_out=%ld f_vco=%.1f n=%d m=%d p=%d\n",
+    DebugF("f_out=%ld f_vco=%.1f n=%lu m=%lu p=%lu\n",
            ActualClock, VCO, *rN, *rM, *rP);
 
     return ActualClock;
-- 
2.4.5

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to