diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-07-07 23:29:51 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-08-28 12:06:39 +0100 |
commit | 27cf5840272810ae20fdae550db71ec48cf1b02d (patch) | |
tree | bfe6312df34fce49a82b18c463f0ac374d83dd7d /hw/xfree86/ramdac/TI.c | |
parent | 6cc0f3d95d62e33a5d86f865159cc3526d3a9dc5 (diff) |
debug output format fix in TI.c
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@dronecode.org.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xfree86/ramdac/TI.c')
-rw-r--r-- | hw/xfree86/ramdac/TI.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |