From ea1320bee7fbd0f895e8afe528e4b528489b2c5e Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 22 Nov 2016 17:32:28 -0800 Subject: Add uheap for debugging the size of objects. Still not perfect though. --- lib/utils/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils/printf.c') 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; -- cgit v1.2.3