summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/vfs_fat_file.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-14 22:41:14 +0000
committerDamien George <damien.p.george@gmail.com>2016-03-14 22:41:14 +0000
commit0be6359f39136b0ab256ede945a88ed070114ebf (patch)
tree1e6ceb9f12038697668224095359ff5c132665cd /extmod/vfs_fat_file.c
parent2a1cca20b1e1a93c86c8c3a3254ab7150c85ac08 (diff)
downloadmicropython-0be6359f39136b0ab256ede945a88ed070114ebf.tar.gz
micropython-0be6359f39136b0ab256ede945a88ed070114ebf.zip
py: When printf'ing an object as a pointer, pass the concrete pointer.
Diffstat (limited to 'extmod/vfs_fat_file.c')
-rw-r--r--extmod/vfs_fat_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_fat_file.c b/extmod/vfs_fat_file.c
index f5dc565d1b..857cd1f470 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, "<io.%s %p>", mp_obj_get_type_str(self_in), self_in);
+ mp_printf(print, "<io.%s %p>", 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) {