Skip to content

Commit

Permalink
lib_libvsprintf.c: Add support for %pB parameter.
Browse files Browse the repository at this point in the history
Signed-off-by: likun17 <[email protected]>
  • Loading branch information
Otpvondoiats committed Sep 19, 2024
1 parent ed57217 commit 4801852
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/libc/stdio/lib_libvsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,14 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
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;
Expand Down

0 comments on commit 4801852

Please sign in to comment.