[PATCH] input: Fix format string for verify_internal_event

Peter Hutterer peter.hutterer at who-t.net
Sun May 15 17:58:22 PDT 2011


On Sat, May 14, 2011 at 04:31:10PM -0700, Jeremy Huddleston wrote:
> 
> 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 at apple.com>
> ---
>  dix/inpututils.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/inpututils.c b/dix/inpututils.c
> index aeace6e..49e1758 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");
> -- 
> 1.7.4.1

merged, thanks.
 
Cheers,
  Peter


More information about the xorg-devel mailing list