From e5bf64d792fec5565bad59352aa85c9f660cdb70 Mon Sep 17 00:00:00 2001 From: liuhongchao Date: Tue, 8 Aug 2023 14:39:36 +0800 Subject: [PATCH] apps/examples:Edit arm64 compilation error Signed-off-by: liuhongchao --- examples/touchscreen/tc_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }