mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 12:50:04 +01:00
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>
This commit is contained in:
parent
0de7cec907
commit
ba7d1020ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue