diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-22 17:32:28 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-11-22 17:32:28 -0800 |
| commit | ea1320bee7fbd0f895e8afe528e4b528489b2c5e (patch) | |
| tree | 8b00cb9098d92fda0e8c9d8f29fbaa247b05c9b0 /lib/utils | |
| parent | cc412a80adf8ace5e5daa94be995d710727a1ead (diff) | |
Add uheap for debugging the size of objects. Still not perfect though.
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/printf.c b/lib/utils/printf.c index 303edfcca..dab8baf2e 100644 --- a/lib/utils/printf.c +++ b/lib/utils/printf.c @@ -60,13 +60,13 @@ int vprintf(const char *fmt, va_list ap) { } #if MICROPY_DEBUG_PRINTERS +extern const mp_print_t MICROPY_DEBUG_PRINTER_DEST; int DEBUG_printf(const char *fmt, ...) { va_list ap; va_start(ap, fmt); #ifndef MICROPY_DEBUG_PRINTER_DEST #define MICROPY_DEBUG_PRINTER_DEST mp_plat_print #endif - extern const mp_print_t MICROPY_DEBUG_PRINTER_DEST; int ret = mp_vprintf(&MICROPY_DEBUG_PRINTER_DEST, fmt, ap); va_end(ap); return ret; |
