From bcb60a49c5e74aa11d0256874659afddea91e53d Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 7 Jul 2015 23:11:07 +0100 Subject: [PATCH] debug output format fix in TouchEventHistoryPush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xserver/build.x86_64/../dix/touch.c:468:16: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Werror=format=] %zu is C99, but is already used in a few places. Perhaps doc/c-extensions needs to mention it. Signed-off-by: Jon TURNEY Reviewed-by: Peter Hutterer --- dix/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/touch.c b/dix/touch.c index 49d16ab37..54da13247 100644 --- a/dix/touch.c +++ b/dix/touch.c @@ -464,7 +464,7 @@ TouchEventHistoryPush(TouchPointInfoPtr ti, const DeviceEvent *ev) /* FIXME: proper overflow fixes */ if (ti->history_elements > ti->history_size - 1) { ti->history_elements = ti->history_size - 1; - DebugF("source device %d: history size %d overflowing for touch %u\n", + DebugF("source device %d: history size %zu overflowing for touch %u\n", ti->sourceid, ti->history_size, ti->client_id); } }