lib/utils/printf: Use more conservative check for MICROPY_DEBUG_STDERR.

pull/1641/head
Paul Sokolovsky 2015-11-23 22:38:48 +02:00
rodzic 9a56912ad1
commit 4892e4c5fc
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;