[PATCH 3/7] debug output format fix in TI.c

Jon TURNEY jon.turney at dronecode.org.uk
Thu Aug 13 05:11:33 PDT 2015


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.turney at 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



More information about the xorg-devel mailing list