lib_libvsprintf.c: Add support for %pB parameter.

Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
likun17 2024-02-02 14:26:25 +08:00 committed by GUIDINGLI
parent 49b9aa0f33
commit 83914d5b29

View file

@ -1122,6 +1122,14 @@ str_lpad:
c = fmt_char(fmt);
switch (c)
{
case 'B':
{
FAR struct va_format *vaf = (FAR void *)(uintptr_t)x;
lib_bsprintf(stream, vaf->fmt, vaf->va);
continue;
}
case 'V':
{
FAR struct va_format *vaf = (FAR void *)(uintptr_t)x;