From ba7d1020ac0135ebc8acda4cd57ed48b331e0133 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 14 May 2011 16:31:10 -0700 Subject: 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- dix/inpututils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix/inpututils.c') 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"); -- cgit v1.2.3