diff --git a/cmsis-pack/GorgonMeducer.perf_counter.2.1.0-dev2.pack b/cmsis-pack/GorgonMeducer.perf_counter.2.1.0-dev2.pack index 20b3ac8..3e686a8 100644 Binary files a/cmsis-pack/GorgonMeducer.perf_counter.2.1.0-dev2.pack and b/cmsis-pack/GorgonMeducer.perf_counter.2.1.0-dev2.pack differ diff --git a/lib/perf_counter.h b/lib/perf_counter.h index 7720cb4..f1b02d8 100644 --- a/lib/perf_counter.h +++ b/lib/perf_counter.h @@ -317,8 +317,8 @@ __asm(".global __ensure_systick_wrapper\n\t"); __perf_counter_printf__( \ "--------------------------------------------\r\n"); \ __perf_counter_printf__( \ - __STR " total cycle count: %d [%08x]\r\n", \ - (int)_, (int)_); \ + __STR " total cycle count: %ld [%016lx]\r\n", \ + (long)_, (long)_); \ } else { \ __VA_ARGS__ \ }; \ diff --git a/perf_counter.h b/perf_counter.h index 7720cb4..f1b02d8 100644 --- a/perf_counter.h +++ b/perf_counter.h @@ -317,8 +317,8 @@ __asm(".global __ensure_systick_wrapper\n\t"); __perf_counter_printf__( \ "--------------------------------------------\r\n"); \ __perf_counter_printf__( \ - __STR " total cycle count: %d [%08x]\r\n", \ - (int)_, (int)_); \ + __STR " total cycle count: %ld [%016lx]\r\n", \ + (long)_, (long)_); \ } else { \ __VA_ARGS__ \ }; \