summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-10-15 00:05:55 +0100
committerDamien George <damien.p.george@gmail.com>2015-10-15 00:05:55 +0100
commit4300c7dba2f500cd3b2a664c7491aa3ddb328011 (patch)
treef51c1a0aa2a7e9e56e8276a49fb7ff096a74e0ba /py
parent74d0df7324f23cfbbc2ae5b0cd0bf7f214fd05e5 (diff)
downloadmicropython-4300c7dba2f500cd3b2a664c7491aa3ddb328011.tar.gz
micropython-4300c7dba2f500cd3b2a664c7491aa3ddb328011.zip
py: Remove dependency on printf/fwrite in mp_plat_print.
See issue #1500.
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index ad2fe3ee56..acee5ee951 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -806,7 +806,7 @@ typedef double mp_float_t;
// This macro is used to do all output (except when MICROPY_PY_IO is defined)
#ifndef MP_PLAT_PRINT_STRN
-#define MP_PLAT_PRINT_STRN(str, len) printf("%.*s", (int)len, str)
+#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
#endif
#ifndef MP_SSIZE_MAX