mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 05:08:45 +00:00
[feat][util] add vsnprintf nano, reduce codesize for boot2
This commit is contained in:
parent
53323e2c62
commit
41750c31cf
3 changed files with 534 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue