Skip to content

Commit 34f5d35

Browse files
committed
Enable plain printf support for mbed_memory_status
1 parent 497345f commit 34f5d35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libraries/mbed-memory-status/mbed_memory_status.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@
6767
#define DEBUG_MEMORY_CONTENTS 0
6868
#endif
6969

70-
#define OUTPUT_SERIAL 1
70+
#define OUTPUT_SERIAL 0
7171
#define OUTPUT_RTT 0
7272
#define OUTPUT_SWO 0
73+
#define OUTPUT_PRINTF 1
7374

7475
#if DEBUG_ISR_STACK_USAGE
7576
#include "compiler_abstraction.h"
@@ -198,6 +199,10 @@ static void nway_print_label(const char * label)
198199
#if OUTPUT_SWO
199200
output_swo_print_label(label);
200201
#endif
202+
203+
#if OUTPUT_PRINTF
204+
printf("%s", label);
205+
#endif
201206
}
202207

203208
static const char HEX[] = "0123456789ABCDEF";

0 commit comments

Comments
 (0)