Skip to content

Commit 408b809

Browse files
txy-21HongChao6
authored andcommitted
graphics/input: Fix format specifier warning in getevent.
Fix format specifier mismatch where '%d' was used for int32_t type argument. Use PRId32 macro instead to ensure portable formatting across architectures. Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
1 parent ad6403f commit 408b809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphics/input/getevent/getevent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void read_touch_event(FAR struct input_device_s *dev)
191191
if (nbytes == SIZEOF_TOUCH_SAMPLE_S(priv->maxpoint))
192192
{
193193
GETEVENT_INFO("touch event: %s\n", dev->path);
194-
GETEVENT_INFO(" npoints : %d\n", priv->sample->npoints);
194+
GETEVENT_INFO(" npoints : %" PRId32 "\n", priv->sample->npoints);
195195
for (i = 0; i < priv->maxpoint; i++)
196196
{
197197
if (priv->sample->point[i].flags == 0)

0 commit comments

Comments
 (0)