diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-07-07 23:11:07 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-08-28 12:07:13 +0100 |
commit | bcb60a49c5e74aa11d0256874659afddea91e53d (patch) | |
tree | 81563467ab162d61772a87fc2ef96d5a06ac5aa2 /dix | |
parent | 1f96a0d273e56d01cd240e6a4ef8765e0ffe058c (diff) |
debug output format fix in TouchEventHistoryPush()
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |