Skip to content

Commit 4892e4c

Browse files
committed
lib/utils/printf: Use more conservative check for MICROPY_DEBUG_STDERR.
1 parent 9a56912 commit 4892e4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/printf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int vprintf(const char *fmt, va_list ap) {
5959
int DEBUG_printf(const char *fmt, ...) {
6060
va_list ap;
6161
va_start(ap, fmt);
62-
#if MICROPY_DEBUG_STDERR
62+
#if defined(MICROPY_DEBUG_STDERR) && MICROPY_DEBUG_STDERR
6363
// Printing debug to stderr may give a chance tests which
6464
// check stdout to pass, etc.
6565
extern const mp_print_t mp_stderr_print;

0 commit comments

Comments
 (0)