HAL_ChibiOS: fixed uprintf() in bootloader

This commit is contained in:
Andrew Tridgell 2019-10-20 07:04:40 +11:00
parent e6cb35090c
commit 1f06aa069e
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ int __wrap_snprintf(char *str, size_t size, const char *fmt, ...)
int __wrap_vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
{
return hal.util->vsnprintf(str, size, fmt, ap);
#ifdef HAL_BOOTLOADER_BUILD
return chvsnprintf(str, size, fmt, ap);
#else
return hal.util->vsnprintf(str, size, fmt, ap);
#endif
}
int __wrap_vasprintf(char **strp, const char *fmt, va_list ap)