Skip to content

Commit ecc7eed

Browse files
committed
Changed printf format from %S => %s
1 parent 31217f6 commit ecc7eed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,17 @@ static void postmortem_report(uint32_t sp_dump) {
167167
cut_here();
168168

169169
if (s_pm.panic_line) {
170-
ets_printf_P(PSTR("\nPanic %S:%d %S"), s_pm.panic_file, s_pm.panic_line, s_pm.panic_func);
170+
ets_printf_P(PSTR("\nPanic %s:%d %s"), s_pm.panic_file, s_pm.panic_line, s_pm.panic_func);
171171
if (s_pm.panic_what) {
172-
ets_printf_P(PSTR(": Assertion '%S' failed."), s_pm.panic_what);
172+
ets_printf_P(PSTR(": Assertion '%s' failed."), s_pm.panic_what);
173173
}
174174
ets_putc('\n');
175175
}
176176
else if (s_pm.panic_file) {
177-
ets_printf_P(PSTR("\nPanic %S\n"), s_pm.panic_file);
177+
ets_printf_P(PSTR("\nPanic %s\n"), s_pm.panic_file);
178178
}
179179
else if (s_pm.unhandled_exception) {
180-
ets_printf_P(PSTR("\nUnhandled C++ exception: %S\n"), s_pm.unhandled_exception);
180+
ets_printf_P(PSTR("\nUnhandled C++ exception: %s\n"), s_pm.unhandled_exception);
181181
}
182182
else if (s_pm.abort_called) {
183183
ets_printf_P(PSTR("\nAbort called\n"));
@@ -292,7 +292,7 @@ static void postmortem_report(uint32_t sp_dump) {
292292
// Use cap-X formatting to ensure the standard EspExceptionDecoder doesn't match the address
293293
if (_umm_last_fail_alloc.addr) {
294294
#if defined(DEBUG_ESP_OOM)
295-
ets_printf_P(PSTR("\nlast failed alloc call: 0x%08X(%d), File: %S:%d\n"),
295+
ets_printf_P(PSTR("\nlast failed alloc call: 0x%08X(%d), File: %s:%d\n"),
296296
(uint32_t)_umm_last_fail_alloc.addr,
297297
_umm_last_fail_alloc.size,
298298
(_umm_last_fail_alloc.file) ? _umm_last_fail_alloc.file : PSTR("??"),

0 commit comments

Comments
 (0)