diff --git a/cores/esp8266/core_esp8266_postmortem.c b/cores/esp8266/core_esp8266_postmortem.c index 3878cf1b9d..e8e04f7756 100644 --- a/cores/esp8266/core_esp8266_postmortem.c +++ b/cores/esp8266/core_esp8266_postmortem.c @@ -166,7 +166,7 @@ void __wrap_system_restart_local() { // Use cap-X formatting to ensure the standard EspExceptionDecoder doesn't match the address if (umm_last_fail_alloc_addr) { - ets_printf("\nlast failed alloc call: %08X(%d)\n", (uint32_t)umm_last_fail_alloc_addr, umm_last_fail_alloc_size); + ets_printf_P("\nlast failed alloc call: %08X(%d)\n", (uint32_t)umm_last_fail_alloc_addr, umm_last_fail_alloc_size); } custom_crash_callback( &rst_info, sp + offset, stack_end ); diff --git a/cores/esp8266/debug.h b/cores/esp8266/debug.h index 92d1356dce..0a804e76b2 100644 --- a/cores/esp8266/debug.h +++ b/cores/esp8266/debug.h @@ -23,7 +23,7 @@ extern "C" { #endif void __panic_func(const char* file, int line, const char* func) __attribute__((noreturn)); -#define panic() __panic_func(__FILE__, __LINE__, __func__) +#define panic() __panic_func(PSTR(__FILE__), __LINE__, __func__) #ifdef __cplusplus }