This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 9d8a364e161bb6f8c106eb4df82e06cc8758d84d
Author: yinshengkai <[email protected]>
AuthorDate: Fri Sep 22 17:01:50 2023 +0800

    testing/osperf: fix qemu-armv8a  compilation error
    
    Signed-off-by: yinshengkai <[email protected]>
---
 testing/osperf/osperf.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/testing/osperf/osperf.c b/testing/osperf/osperf.c
index ad59fbd34..8e7293ea4 100644
--- a/testing/osperf/osperf.c
+++ b/testing/osperf/osperf.c
@@ -242,7 +242,7 @@ static FAR void *poll_task(FAR void *arg)
 {
   FAR void **argv = arg;
   FAR struct performance_time_s *time = argv[0];
-  int pipefd = (int)argv[1];
+  int pipefd = (int)(uintptr_t)argv[1];
 
   performance_start(time);
   write(pipefd, "a", 1);
@@ -357,12 +357,12 @@ static void performance_run(const FAR struct 
performance_entry_s *item,
 
       if (detail)
         {
-          printf("\t%d: %zu\n", i, time);
+          printf("\t%zu: %zu\n", i, time);
         }
     }
 
   printf("%-*s %10zu %10zu %10zu\n", NAME_MAX, item->name, max, min,
-          total / count);
+         total / count);
 }
 
 /****************************************************************************
@@ -426,7 +426,7 @@ int main(int argc, FAR char *argv[])
           default:
             performance_help();
             return EXIT_FAILURE;
-          }
+        }
     }
 
   if (optind < argc)
@@ -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");
 
   printf("==============================================================\n");

Reply via email to