diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-10-07 00:50:20 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-10-07 08:07:49 -0700 |
commit | 3556e45711c3b7ec712748d013e678d035185bdd (patch) | |
tree | da58cd4deb464baafcc1771a5fd54eacc38b33d7 /stmhal/printf.c | |
parent | 67f25dfe6f4b13a3b8d40746d2b2fd720c63caed (diff) | |
download | micropython-3556e45711c3b7ec712748d013e678d035185bdd.tar.gz micropython-3556e45711c3b7ec712748d013e678d035185bdd.zip |
Allow real memory errors (from locked gc) to be reported with traceback.
Diffstat (limited to 'stmhal/printf.c')
-rw-r--r-- | stmhal/printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c index 86b756f7d4..137189b94d 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -67,8 +67,9 @@ int vprintf(const char *fmt, va_list ap) { } #if MICROPY_DEBUG_PRINTERS +mp_uint_t mp_verbose_flag = 1; + int DEBUG_printf(const char *fmt, ...) { - (void)stream; va_list ap; va_start(ap, fmt); int ret = pfenv_vprintf(&pfenv_stdout, fmt, ap); |