From 1ecd45d14d6d3c7993b7f5e29253f42b90fbd14b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 5 Apr 2026 13:18:48 -1000 Subject: [PATCH] Drop addr2line hint line The ESPHome CLI already decodes addresses inline (shown as WARNING Decoded lines). The hint was redundant and cost ~100 bytes of flash plus 220 bytes of stack for the format buffer. --- esphome/components/esp8266/crash_handler.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/esphome/components/esp8266/crash_handler.cpp b/esphome/components/esp8266/crash_handler.cpp index d74f845380..3e35233a65 100644 --- a/esphome/components/esp8266/crash_handler.cpp +++ b/esphome/components/esp8266/crash_handler.cpp @@ -4,7 +4,6 @@ #ifdef USE_ESP8266_CRASH_HANDLER #include "crash_handler.h" -#include "esphome/core/helpers.h" #include "esphome/core/log.h" #include @@ -191,14 +190,6 @@ void crash_handler_log() { for (uint8_t i = 0; i < bt_count; i++) { ESP_LOGE(TAG, " BT%d: 0x%08" PRIX32, i, backtrace[i]); } - // Build addr2line hint with all captured addresses for easy copy-paste - char hint[220]; - size_t pos = - buf_append_printf(hint, sizeof(hint), 0, "Use: addr2line -pfiaC -e firmware.elf 0x%08" PRIX32, resetInfo.epc1); - for (uint8_t i = 0; i < bt_count; i++) { - pos = buf_append_printf(hint, sizeof(hint), pos, " 0x%08" PRIX32, backtrace[i]); - } - ESP_LOGE(TAG, "%s", hint); } } // namespace esphome::esp8266