apps/examples:Edit arm64 compilation error

Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
This commit is contained in:
liuhongchao 2023-08-08 14:39:36 +08:00 committed by Xiang Xiao
parent eb815c48d7
commit e5bf64d792

View File

@ -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));
}