From 1dbdf7a380ab86cc5e2563b8848685d3466debb1 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Tue, 23 Jan 2024 15:38:35 +0000 Subject: [PATCH] no need to output int64_t in format string. --- perf_counter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf_counter.h b/perf_counter.h index 82d410d..8b5ae26 100644 --- a/perf_counter.h +++ b/perf_counter.h @@ -359,8 +359,8 @@ __asm(".global __ensure_systick_wrapper\n\t"); __perf_counter_printf__( \ "--------------------------------------------\r\n"); \ __perf_counter_printf__( \ - __STR " total cycle count: %lld [%016llx]\r\n", \ - _, _); \ + __STR " total cycle count: %ld [%016lx]\r\n", \ + (long)_, (long)_); \ } else { \ __VA_ARGS__ \ }; \