apps/examples:Edit arm64 compilation error
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
This commit is contained in:
parent
eb815c48d7
commit
e5bf64d792
@ -126,7 +126,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
|
|
||||||
iinfo("Reading...\n");
|
iinfo("Reading...\n");
|
||||||
nbytes = read(fd, &sample, sizeof(struct mouse_report_s));
|
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 */
|
/* Handle unexpected return values */
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
}
|
}
|
||||||
else if (nbytes != sizeof(struct mouse_report_s))
|
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));
|
nbytes, sizeof(struct mouse_report_s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user