Note that crash backtraces use esp_rom_printf, not libc

This commit is contained in:
J. Nick Koston
2026-02-27 12:46:04 -10:00
parent 2f903c91ff
commit 8dd24bfe78

View File

@@ -11,7 +11,9 @@
* so the SDK's vprintf() path is dead code at runtime. The fprintf()
* and printf() calls in SDK components are only in debug/assert paths
* (gpio_dump_io_configuration, ringbuf diagnostics) that are either
* GC'd or never called.
* GC'd or never called. Crash backtraces and panic output are
* unaffected — they use esp_rom_printf() which is a ROM function
* and does not go through libc.
*
* These stubs redirect through vsnprintf() (which uses _svfprintf_r
* already in the binary) and fwrite(), allowing the linker to