mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
lib_libvsprintf.c: Add support for %pB parameter.
Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
@@ -1122,6 +1122,14 @@ str_lpad:
|
|||||||
c = fmt_char(fmt);
|
c = fmt_char(fmt);
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
|
case 'B':
|
||||||
|
{
|
||||||
|
FAR struct va_format *vaf = (FAR void *)(uintptr_t)x;
|
||||||
|
|
||||||
|
lib_bsprintf(stream, vaf->fmt, vaf->va);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
case 'V':
|
case 'V':
|
||||||
{
|
{
|
||||||
FAR struct va_format *vaf = (FAR void *)(uintptr_t)x;
|
FAR struct va_format *vaf = (FAR void *)(uintptr_t)x;
|
||||||
|
|||||||
Reference in New Issue
Block a user