Re: [RESEND PATCH 2/2] Input: mms114 - add support for touch keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 14, 2023 at 12:04:24PM +0200, Artur Weber wrote:
> +	} else if (data->num_keycodes > MMS114_MAX_TOUCHKEYS) {
> +		dev_warn(&client->dev,
> +			"Found %d linux,keycodes but max is %zd, ignoring the rest\n",
> +			 data->num_keycodes, MMS114_MAX_TOUCHKEYS);

This gives me the following warning:

drivers/input/touchscreen/mms114.c: In function ‘mms114_probe’:
drivers/input/touchscreen/mms114.c:520:25: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 4 has type ‘int’ [-Werror=format=]
  520 |                         "Found %d linux,keycodes but max is %zd, ignoring the rest\n",
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I changed the format specifier to "%d" and applied.

Thanks.

-- 
Dmitry



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux