Skip to content

Commit 790bcbd

Browse files
committed
feat port: added xnprintf in generic vsnprintf
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
1 parent 2219a9f commit 790bcbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

port/generic/stdio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright(c) 2025 John Sanpe <sanpeqf@gmail.com>
44
*/
55

6+
#include <bfdev/xprintf.h>
67
#include <port/stdio.h>
78
#include <export.h>
89

@@ -12,5 +13,5 @@ __bfdev_weak int
1213
bfport_vsnprintf(char *s, bfdev_size_t maxlen, const char *fmt,
1314
bfdev_va_list arg)
1415
{
15-
return 0;
16+
return bfdev_xnprintf(s, maxlen, fmt, arg);
1617
}

0 commit comments

Comments
 (0)