[feat][util] add vsnprintf nano, reduce codesize for boot2

This commit is contained in:
jzlv 2022-11-25 20:17:49 +08:00
parent 53323e2c62
commit 41750c31cf
3 changed files with 534 additions and 1 deletions

View file

@ -9,6 +9,10 @@ int printf(const char *fmt, ...)
uint32_t len;
va_list ap;
if (console == NULL) {
return 0;
}
va_start(ap, fmt);
len = vsnprintf(print_buf, sizeof(print_buf), fmt, ap);
va_end(ap);