From 518af54dede1c12afae4f299cc8529383f29db51 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Fri, 2 Sep 2022 10:29:11 +0800 Subject: [PATCH] bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set Closes https://github.com/espressif/esp-idf/pull/7518 --- components/bootloader_support/src/bootloader_panic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/bootloader_support/src/bootloader_panic.c b/components/bootloader_support/src/bootloader_panic.c index 0b73aea9f8..66a72d98af 100644 --- a/components/bootloader_support/src/bootloader_panic.c +++ b/components/bootloader_support/src/bootloader_panic.c @@ -12,7 +12,11 @@ void __assert_func(const char *file, int line, const char *func, const char *expr) { + +#if !CONFIG_OPTIMIZATION_ASSERTIONS_SILENT esp_rom_printf("Assert failed in %s, %s:%d (%s)\r\n", func, file, line, expr); +#endif + while (1) { } }