diff --git a/components/bootloader_support/src/bootloader_panic.c b/components/bootloader_support/src/bootloader_panic.c index 77c2c55bc5..6cff254ce6 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) { } }