examples/touchscreen/tc_main.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-16 14:18:31 +09:00 committed by Xiang Xiao
parent c48e65414b
commit 2d4d8aa643

View File

@ -200,9 +200,9 @@ int main(int argc, FAR char *argv[])
}
else if (nbytes != sizeof(struct touch_sample_s))
{
printf("tc_main: Unexpected read size=%ld, expected=%d, "
printf("tc_main: Unexpected read size=%zd, expected=%zd, "
"Ignoring\n",
(long)nbytes, sizeof(struct touch_sample_s));
nbytes, sizeof(struct touch_sample_s));
}
/* Print the sample data on successful return */