diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-14 16:31:10 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-05-24 14:08:13 +1000 |
commit | ba7d1020ac0135ebc8acda4cd57ed48b331e0133 (patch) | |
tree | b3e2bdca16cc2d2c395fb75780d9b75e161b24d0 /dix/inpututils.c | |
parent | 0de7cec90738a7a5020150309866bb0e23b6f479 (diff) |
input: Fix format string for verify_internal_event
inpututils.c:577:25: warning: conversion specifies type 'unsigned short' but the argument has type 'unsigned char' [-Wformat,Format String Issue]
ErrorF("%02hx ", *data);
~~~~^ ~~~~~
%02hhx
1 warning generated.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/inpututils.c')
-rw-r--r-- | dix/inpututils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/inpututils.c b/dix/inpututils.c index aeace6ef8..49e175822 100644 --- a/dix/inpututils.c +++ b/dix/inpututils.c @@ -574,7 +574,7 @@ void verify_internal_event(const InternalEvent *ev) for (i = 0; i < sizeof(xEvent); i++, data++) { - ErrorF("%02hx ", *data); + ErrorF("%02hhx ", *data); if ((i % 8) == 7) ErrorF("\n"); |