summaryrefslogtreecommitdiff
path: root/stmhal/file.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-15 09:10:07 +0100
committerDamien George <damien.p.george@gmail.com>2014-06-15 09:10:07 +0100
commite79c6696c59e253235f1da1f8d306273b5d215e0 (patch)
tree96cdedb826bb9ae5b78f004bfb2a6aa8ef38e239 /stmhal/file.c
parent34ab8dd6dde058aeeff721eb066dad36858d8f4b (diff)
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/file.c')
-rw-r--r--stmhal/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/file.c b/stmhal/file.c
index a00c9a8f8..079ab3965 100644
--- a/stmhal/file.c
+++ b/stmhal/file.c
@@ -70,7 +70,7 @@ typedef struct _pyb_file_obj_t {
} pyb_file_obj_t;
void file_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
- printf("<io.%s %p>", mp_obj_get_type_str(self_in), self_in);
+ print(env, "<io.%s %p>", mp_obj_get_type_str(self_in), self_in);
}
STATIC machine_int_t file_obj_read(mp_obj_t self_in, void *buf, machine_uint_t size, int *errcode) {