diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-15 09:10:07 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-15 09:10:07 +0100 |
commit | e79c6696c59e253235f1da1f8d306273b5d215e0 (patch) | |
tree | 96cdedb826bb9ae5b78f004bfb2a6aa8ef38e239 /stmhal/pybstdio.c | |
parent | 34ab8dd6dde058aeeff721eb066dad36858d8f4b (diff) | |
download | micropython-e79c6696c59e253235f1da1f8d306273b5d215e0.tar.gz micropython-e79c6696c59e253235f1da1f8d306273b5d215e0.zip |
stmhal: Fix file print methods to use print instead of printf.
Also make stdout_print_strn static (ultimately this function needs to be
merged with stdout_tx_strn).
Diffstat (limited to 'stmhal/pybstdio.c')
-rw-r--r-- | stmhal/pybstdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pybstdio.c b/stmhal/pybstdio.c index 59e1ead567..05ea06eb44 100644 --- a/stmhal/pybstdio.c +++ b/stmhal/pybstdio.c @@ -96,7 +96,7 @@ typedef struct _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) { pyb_stdio_obj_t *self = self_in; - printf("<io.FileIO %d>", self->fd); + print(env, "<io.FileIO %d>", self->fd); } STATIC machine_int_t stdio_read(mp_obj_t self_in, void *buf, machine_uint_t size, int *errcode) { |