diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-16 18:11:42 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-16 18:20:49 +0200 |
commit | 44739e280e81c2ebf2491818eb5a6d0ef30c7c6b (patch) | |
tree | b3dd81094d08289663452e9c9b744b37750e3869 /py/malloc.c | |
parent | 1b694c082eeda7b147ac7873964a3dd7bb9583a3 (diff) | |
download | micropython-44739e280e81c2ebf2491818eb5a6d0ef30c7c6b.tar.gz micropython-44739e280e81c2ebf2491818eb5a6d0ef30c7c6b.zip |
Make DEBUG_printf() a proper function, implementation is port-dependent.
In particular, unix outputs to stderr, to allow to run testsuite against
micropython built with debug output (by redirecting stderr to /dev/null).
Diffstat (limited to 'py/malloc.c')
-rw-r--r-- | py/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/malloc.c b/py/malloc.c index 5699d86b64..41cf1fd131 100644 --- a/py/malloc.c +++ b/py/malloc.c @@ -6,7 +6,7 @@ #include "mpconfig.h" #if 0 // print debugging info -#define DEBUG_printf(args...) printf(args) +#define DEBUG_printf DEBUG_printf #else // don't print debugging info #define DEBUG_printf(args...) (void)0 #endif |