diff options
Diffstat (limited to 'stmhal/pybstdio.c')
-rw-r--r-- | stmhal/pybstdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/pybstdio.c b/stmhal/pybstdio.c index 6b99049817..bf8b3717d3 100644 --- a/stmhal/pybstdio.c +++ b/stmhal/pybstdio.c @@ -48,9 +48,9 @@ typedef struct _pyb_stdio_obj_t { int fd; } pyb_stdio_obj_t; -void stdio_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { +void stdio_obj_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { pyb_stdio_obj_t *self = self_in; - print(env, "<io.FileIO %d>", self->fd); + mp_printf(print, "<io.FileIO %d>", self->fd); } STATIC mp_uint_t stdio_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { |