mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 15:28:53 +00:00
[preferences] Shorten TAG strings across all platforms (#15004)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user