diff options
Diffstat (limited to 'py/pfenv_printf.c')
-rw-r--r-- | py/pfenv_printf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/pfenv_printf.c b/py/pfenv_printf.c index 39bf321ce3..a68788a7f6 100644 --- a/py/pfenv_printf.c +++ b/py/pfenv_printf.c @@ -27,6 +27,7 @@ #include <assert.h> #include <string.h> #include <stdarg.h> +#include <stdio.h> #include "py/pfenv.h" @@ -193,3 +194,10 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, ...) { va_end(ap); return ret; } + +void printf_wrapper(void *env, const char *fmt, ...) { + va_list args; + va_start(args, fmt); + vprintf(fmt, args); + va_end(args); +} |