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


The following commit(s) were added to refs/heads/master by this push:
     new 30efeb742 system/cachespeed:Optimize output format and processing logic
30efeb742 is described below

commit 30efeb742441f2f62ef0a7b176473f1127cac41b
Author: crafcat7 <[email protected]>
AuthorDate: Wed Dec 28 23:08:56 2022 +0800

    system/cachespeed:Optimize output format and processing logic
---
 system/cachespeed/cachespeed_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/cachespeed/cachespeed_main.c 
b/system/cachespeed/cachespeed_main.c
index 838c0d510..fcd6619cd 100644
--- a/system/cachespeed/cachespeed_main.c
+++ b/system/cachespeed/cachespeed_main.c
@@ -183,7 +183,7 @@ static void print_result(FAR const char *name, size_t bytes,
 
   rate = (uint64_t)bytes * 1000000000 / cost_time / 1024;
   printf(CACHESPEED_PREFIX
-         "%s avg = %"PRIu32 " ns\t Rate: %" PRIu32 "KB/s\t"
+         "%s avg = %"PRIu32 " ns\t Rate: %" PRIu32 " KB/s\t"
          "[cost = %" PRIu32 " ms]\n",
          name, cost_time / repeat_cnt, rate, cost_time / 1000000);
 }
@@ -313,7 +313,7 @@ static void icache_speed_test(FAR void *begin, size_t 
memset_size,
   print_result("invalidate dcache():\t",
                memset_size * repeat_cnt, invalidate_cost_time, repeat_cnt);
 
-  for (pt = 32; pt <= memset_size; pt <<= 1)
+  for (pt = 32; pt <= opt_size; pt <<= 1)
     {
       const size_t total_size =  pt * repeat_cnt;
       invalidate_cost_time = 0;

Reply via email to