From 42f53b697161e986265be24fd5e6b629e30e01ca Mon Sep 17 00:00:00 2001 From: "ethan.du" Date: Thu, 23 Jul 2020 17:49:45 +0800 Subject: [PATCH] fix printf chaos --- platform/os/freertos/HAL_OS_freertos.c | 2 +- platform/os/nos/HAL_OS_nos.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/os/freertos/HAL_OS_freertos.c b/platform/os/freertos/HAL_OS_freertos.c index b7e5479..eb715f9 100644 --- a/platform/os/freertos/HAL_OS_freertos.c +++ b/platform/os/freertos/HAL_OS_freertos.c @@ -104,7 +104,7 @@ void HAL_Printf(_IN_ const char *fmt, ...) va_list args; va_start(args, fmt); - printf(fmt, args); + vprintf(fmt, args); va_end(args); fflush(stdout); diff --git a/platform/os/nos/HAL_OS_nos.c b/platform/os/nos/HAL_OS_nos.c index f3532ac..c4ab9c5 100644 --- a/platform/os/nos/HAL_OS_nos.c +++ b/platform/os/nos/HAL_OS_nos.c @@ -70,7 +70,7 @@ void HAL_Printf(_IN_ const char *fmt, ...) va_list args; va_start(args, fmt); - printf(fmt, args); + vprintf(fmt, args); va_end(args); fflush(stdout);