From a77dce6979fd7b30bcd89ba9c36be4c06755e52a 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 77c2c55bc51..6cff254ce60 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) { } }