From bc7a43bdaf0b4c3e2dfb77bc5223ff19eac3a2a4 Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 22 Aug 2018 16:41:56 +0800 Subject: [PATCH] [DeviceDriver][SFUD] Replace the vsnprintf to rt_vsnprintf. --- components/drivers/spi/spi_flash_sfud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 72d462a871..9859cb0141 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -189,7 +189,7 @@ void sfud_log_debug(const char *file, const long line, const char *format, ...) va_start(args, format); rt_kprintf("[SFUD] (%s:%ld) ", file, line); /* must use vprintf to print */ - vsnprintf(log_buf, sizeof(log_buf), format, args); + rt_vsnprintf(log_buf, sizeof(log_buf), format, args); rt_kprintf("%s\n", log_buf); va_end(args); } @@ -207,7 +207,7 @@ void sfud_log_info(const char *format, ...) { va_start(args, format); rt_kprintf("[SFUD] "); /* must use vprintf to print */ - vsnprintf(log_buf, sizeof(log_buf), format, args); + rt_vsnprintf(log_buf, sizeof(log_buf), format, args); rt_kprintf("%s\n", log_buf); va_end(args); }