lkml.org 
[lkml]   [2023]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND PATCH 2/2] Input: mms114 - add support for touch keys
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

\
 
 \ /
  Last update: 2023-07-19 08:23    [W:4.309 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site