[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);
|
va_start(args, format);
|
||||||
rt_kprintf("[SFUD] (%s:%ld) ", file, line);
|
rt_kprintf("[SFUD] (%s:%ld) ", file, line);
|
||||||
/* must use vprintf to print */
|
/* 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);
|
rt_kprintf("%s\n", log_buf);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,7 @@ void sfud_log_info(const char *format, ...) {
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
rt_kprintf("[SFUD] ");
|
rt_kprintf("[SFUD] ");
|
||||||
/* must use vprintf to print */
|
/* 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);
|
rt_kprintf("%s\n", log_buf);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue