diff --git a/examples/touchscreen/tc_main.c b/examples/touchscreen/tc_main.c index 6b792a6ff..cff8d9f51 100644 --- a/examples/touchscreen/tc_main.c +++ b/examples/touchscreen/tc_main.c @@ -126,7 +126,7 @@ int main(int argc, FAR char *argv[]) iinfo("Reading...\n"); nbytes = read(fd, &sample, sizeof(struct mouse_report_s)); - iinfo("Bytes read: %d\n", nbytes); + iinfo("Bytes read: %zd\n", nbytes); /* Handle unexpected return values */ @@ -145,7 +145,7 @@ int main(int argc, FAR char *argv[]) } else if (nbytes != sizeof(struct mouse_report_s)) { - printf("tc_main: Unexpected read size=%d, expected=%d, Ignoring\n", + printf("tc_main: Unexpected read size=%zd,expected=%zd,Ignoring\n", nbytes, sizeof(struct mouse_report_s)); }