diff options
Diffstat (limited to 'unix/file.c')
-rw-r--r-- | unix/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/file.c b/unix/file.c index 6688028a4c..dfe2d6e113 100644 --- a/unix/file.c +++ b/unix/file.c @@ -60,10 +60,10 @@ STATIC void check_fd_is_open(const mp_obj_fdfile_t *o) { extern const mp_obj_type_t mp_type_fileio; extern const mp_obj_type_t mp_type_textio; -STATIC void fdfile_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { +STATIC void fdfile_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { (void)kind; mp_obj_fdfile_t *self = self_in; - print(env, "<io.%s %d>", mp_obj_get_type_str(self), self->fd); + mp_printf(print, "<io.%s %d>", mp_obj_get_type_str(self), self->fd); } STATIC mp_uint_t fdfile_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { |