[PATCH] config/udev: fix "removing GPU device" format string mistake

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 17 16:09:18 PDT 2012


On Wed, Oct 17, 2012 at 03:13:45PM -0700, Aaron Plattner wrote:
>  udev.c: In function 'device_removed':
>  udev.c:270:9: warning: format '%d' expects argument of type 'int', but argument 3 has type 'const char *' [-Wformat]
> 
> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
> ---
> There are plenty of other format warnings, but this one was particularly
> egregious.
> 
>  config/udev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/udev.c b/config/udev.c
> index 454838f..de89241 100644
> --- a/config/udev.c
> +++ b/config/udev.c
> @@ -267,7 +267,7 @@ device_removed(struct udev_device *device)
>  
>          if (strncmp(sysname,"card", 4) != 0)
>              return;
> -        ErrorF("removing GPU device %s %d\n", syspath, path);
> +        ErrorF("removing GPU device %s %s\n", syspath, path);
>          if (!path)
>              return;
>  
> -- 
> 1.7.12
> 

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>


More information about the xorg-devel mailing list