Skip to content

Commit

Permalink
Changed printf format from %S => %s
Browse files Browse the repository at this point in the history
  • Loading branch information
mhightower83 committed Nov 4, 2024
1 parent 31217f6 commit ecc7eed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cores/esp8266/core_esp8266_postmortem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,17 @@ static void postmortem_report(uint32_t sp_dump) {
cut_here();

if (s_pm.panic_line) {
ets_printf_P(PSTR("\nPanic %S:%d %S"), s_pm.panic_file, s_pm.panic_line, s_pm.panic_func);
ets_printf_P(PSTR("\nPanic %s:%d %s"), s_pm.panic_file, s_pm.panic_line, s_pm.panic_func);
if (s_pm.panic_what) {
ets_printf_P(PSTR(": Assertion '%S' failed."), s_pm.panic_what);
ets_printf_P(PSTR(": Assertion '%s' failed."), s_pm.panic_what);
}
ets_putc('\n');
}
else if (s_pm.panic_file) {
ets_printf_P(PSTR("\nPanic %S\n"), s_pm.panic_file);
ets_printf_P(PSTR("\nPanic %s\n"), s_pm.panic_file);
}
else if (s_pm.unhandled_exception) {
ets_printf_P(PSTR("\nUnhandled C++ exception: %S\n"), s_pm.unhandled_exception);
ets_printf_P(PSTR("\nUnhandled C++ exception: %s\n"), s_pm.unhandled_exception);
}
else if (s_pm.abort_called) {
ets_printf_P(PSTR("\nAbort called\n"));
Expand Down Expand Up @@ -292,7 +292,7 @@ static void postmortem_report(uint32_t sp_dump) {
// Use cap-X formatting to ensure the standard EspExceptionDecoder doesn't match the address
if (_umm_last_fail_alloc.addr) {
#if defined(DEBUG_ESP_OOM)
ets_printf_P(PSTR("\nlast failed alloc call: 0x%08X(%d), File: %S:%d\n"),
ets_printf_P(PSTR("\nlast failed alloc call: 0x%08X(%d), File: %s:%d\n"),
(uint32_t)_umm_last_fail_alloc.addr,
_umm_last_fail_alloc.size,
(_umm_last_fail_alloc.file) ? _umm_last_fail_alloc.file : PSTR("??"),
Expand Down

0 comments on commit ecc7eed

Please sign in to comment.