Skip to content

Commit d9713b2

Browse files
authored
Fix printf in first party test (#970)
fix #944 Passing va to ... is invalid, but I didn't find an offical doc
1 parent 53ae78c commit d9713b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/first_party/src/common/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int printf(const char *fmt, ...)
66
{
77
va_list ap;
88
va_start(ap, fmt);
9-
int rc = npf_pprintf(&htif_putc, NULL, fmt, ap);
9+
int rc = npf_vpprintf(&htif_putc, NULL, fmt, ap);
1010
va_end(ap);
1111
return rc;
1212
}

0 commit comments

Comments
 (0)