[preferences] Shorten TAG strings across all platforms (#15004)

This commit is contained in:
J. Nick Koston
2026-03-20 15:09:01 -10:00
committed by GitHub
parent 7f500c4b6e
commit 51ccad8461
6 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
namespace esphome::esp32 {
static const char *const TAG = "esp32.preferences";
static const char *const TAG = "preferences";
// Buffer size for converting uint32_t to string: max "4294967295" (10 chars) + null terminator + 1 padding
static constexpr size_t KEY_BUFFER_SIZE = 12;

View File

@@ -13,7 +13,7 @@ extern "C" {
namespace esphome::esp8266 {
static const char *const TAG = "esp8266.preferences";
static const char *const TAG = "preferences";
static constexpr uint32_t ESP_RTC_USER_MEM_START = 0x60001200;
static constexpr uint32_t ESP_RTC_USER_MEM_SIZE_WORDS = 128;

View File

@@ -9,7 +9,7 @@
namespace esphome::host {
namespace fs = std::filesystem;
static const char *const TAG = "host.preferences";
static const char *const TAG = "preferences";
void HostPreferences::setup_() {
if (this->setup_complete_)

View File

@@ -9,7 +9,7 @@
namespace esphome::libretiny {
static const char *const TAG = "lt.preferences";
static const char *const TAG = "preferences";
// Buffer size for converting uint32_t to string: max "4294967295" (10 chars) + null terminator + 1 padding
static constexpr size_t KEY_BUFFER_SIZE = 12;

View File

@@ -14,7 +14,7 @@
namespace esphome::rp2040 {
static const char *const TAG = "rp2040.preferences";
static const char *const TAG = "preferences";
static constexpr uint32_t RP2040_FLASH_STORAGE_SIZE = 512;

View File

@@ -10,7 +10,7 @@
namespace esphome::zephyr {
static const char *const TAG = "zephyr.preferences";
static const char *const TAG = "preferences";
bool ZephyrPreferenceBackend::save(const uint8_t *data, size_t len) {
this->data.resize(len);