[wifi] Use LOG_STR_LITERAL for scan complete log string literals

Wrap string literal ternary args in LOG_STR_LITERAL to keep them
in flash on ESP8266.
This commit is contained in:
J. Nick Koston
2026-03-19 21:00:12 -10:00
parent 02ada93ea5
commit 8211218483
@@ -725,7 +725,7 @@ void WiFiComponent::wifi_scan_done_callback_(void *arg, STATUS status) {
}
}
ESP_LOGV(TAG, "Scan complete: %zu found, %zu stored%s", total, this->scan_result_.size(),
needs_full ? "" : " (filtered)");
needs_full ? LOG_STR_LITERAL("") : LOG_STR_LITERAL(" (filtered)"));
this->scan_done_ = true;
#ifdef USE_WIFI_SCAN_RESULTS_LISTENERS
this->pending_.scan_complete = true; // Defer listener callbacks to main loop