mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 06:00:27 +08:00
[DeviceDriver][SFUD] Replace the vsnprintf to rt_vsnprintf.
This commit is contained in:
parent
fcb9fd5ded
commit
bc7a43bdaf
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user