From 3b4ed0a51fb7ad832682e8dd7c2e738594330121 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 3 Sep 2025 19:04:21 -0500 Subject: [PATCH] preen --- esphome/components/esp8266/preferences.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/esp8266/preferences.cpp b/esphome/components/esp8266/preferences.cpp index da6c2fdb86..a26e9cc498 100644 --- a/esphome/components/esp8266/preferences.cpp +++ b/esphome/components/esp8266/preferences.cpp @@ -1,6 +1,7 @@ #ifdef USE_ESP8266 #include +#include extern "C" { #include "spi_flash.h" } @@ -177,7 +178,7 @@ class ESP8266Preferences : public ESPPreferences { ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash) override { uint32_t length_words = bytes_to_words(length); if (length_words > 255) { - ESP_LOGE(TAG, "Preference too large: %u words > 255", length_words); + ESP_LOGE(TAG, "Preference too large: %" PRIu32 " words > 255", length_words); return {}; } if (in_flash) {