testing/osperf: fix qemu-armv8a compilation error

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-09-22 17:01:50 +08:00 committed by Xiang Xiao
parent 009c9ad13f
commit 9d8a364e16

View File

@ -242,7 +242,7 @@ static FAR void *poll_task(FAR void *arg)
{ {
FAR void **argv = arg; FAR void **argv = arg;
FAR struct performance_time_s *time = argv[0]; FAR struct performance_time_s *time = argv[0];
int pipefd = (int)argv[1]; int pipefd = (int)(uintptr_t)argv[1];
performance_start(time); performance_start(time);
write(pipefd, "a", 1); write(pipefd, "a", 1);
@ -357,7 +357,7 @@ static void performance_run(const FAR struct performance_entry_s *item,
if (detail) if (detail)
{ {
printf("\t%d: %zu\n", i, time); printf("\t%zu: %zu\n", i, time);
} }
} }
@ -439,7 +439,7 @@ int main(int argc, FAR char *argv[])
} }
} }
printf("OS performance args: count:%d, detail:%s\n", count, printf("OS performance args: count:%zu, detail:%s\n", count,
detail ? "true" : "false"); detail ? "true" : "false");
printf("==============================================================\n"); printf("==============================================================\n");