Skip to content
Snippets Groups Projects
Commit 4892e4c5 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 9a56912a
Branches
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ int vprintf(const char *fmt, va_list ap) { ...@@ -59,7 +59,7 @@ int vprintf(const char *fmt, va_list ap) {
int DEBUG_printf(const char *fmt, ...) { int DEBUG_printf(const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); 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 // Printing debug to stderr may give a chance tests which
// check stdout to pass, etc. // check stdout to pass, etc.
extern const mp_print_t mp_stderr_print; extern const mp_print_t mp_stderr_print;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment