From 4892e4c5fc530b22826e15a2daa08e57f2623696 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Mon, 23 Nov 2015 22:38:48 +0200
Subject: [PATCH] lib/utils/printf: Use more conservative check for
 MICROPY_DEBUG_STDERR.

---
 lib/utils/printf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils/printf.c b/lib/utils/printf.c
index f09047d09..b868d974c 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;
-- 
GitLab