summaryrefslogtreecommitdiffstatshomepage
path: root/lib/utils
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-23 22:38:48 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-23 22:38:48 +0200
commit4892e4c5fc530b22826e15a2daa08e57f2623696 (patch)
treeb8b5b22614d6b2bf9cc83c301837c4324bcf2d3c /lib/utils
parent9a56912ad16065c8fc3670c8d493f922bc54e5b1 (diff)
downloadmicropython-4892e4c5fc530b22826e15a2daa08e57f2623696.tar.gz
micropython-4892e4c5fc530b22826e15a2daa08e57f2623696.zip
lib/utils/printf: Use more conservative check for MICROPY_DEBUG_STDERR.
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/printf.c b/lib/utils/printf.c
index f09047d096..b868d974c2 100644
--- a/lib/utils/printf.c
+++ b/lib/utils/printf.c
@@ -59,7 +59,7 @@ int vprintf(const char *fmt, va_list ap) {
int DEBUG_printf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
- #if MICROPY_DEBUG_STDERR
+ #if defined(MICROPY_DEBUG_STDERR) && MICROPY_DEBUG_STDERR
// Printing debug to stderr may give a chance tests which
// check stdout to pass, etc.
extern const mp_print_t mp_stderr_print;