Use __perf_counter_printf__ replace printf

This commit is contained in:
Gabriel Wang 2023-07-26 07:55:20 +01:00 committed by GitHub
parent c71e5161e3
commit 64a69c7661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,7 +366,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
SAFE_NAME(s_lTimestamp) = 0; \
SAFE_NAME(s_lTotal) = 0; \
if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \
printf("CPU Usage %3.2f%%\r\n", (double)__usage__); \
__perf_counter_printf__("CPU Usage %3.2f%%\r\n", (double)__usage__); \
} else { \
__VA_ARGS__ \
} \