From 27cf5840272810ae20fdae550db71ec48cf1b02d Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 7 Jul 2015 23:29:51 +0100 Subject: [PATCH] debug output format fix in TI.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Peter Hutterer --- 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 f8081caea..0ae1db57e 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;