From 0be6359f39136b0ab256ede945a88ed070114ebf Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 14 Mar 2016 22:41:14 +0000 Subject: py: When printf'ing an object as a pointer, pass the concrete pointer. --- extmod/vfs_fat_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extmod/vfs_fat_file.c') diff --git a/extmod/vfs_fat_file.c b/extmod/vfs_fat_file.c index f5dc565d1..857cd1f47 100644 --- a/extmod/vfs_fat_file.c +++ b/extmod/vfs_fat_file.c @@ -77,7 +77,7 @@ typedef struct _pyb_file_obj_t { STATIC void file_obj_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { (void)kind; - mp_printf(print, "", mp_obj_get_type_str(self_in), self_in); + mp_printf(print, "", mp_obj_get_type_str(self_in), MP_OBJ_TO_PTR(self_in)); } STATIC mp_uint_t file_obj_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { -- cgit v1.2.3