[snapshot] Keep the fallback name literal in flash on ESP8266

This commit is contained in:
J. Nick Koston
2026-09-08 17:59:23 +02:00
parent bb5481a58d
commit 2764f9d938
+1 -1
View File
@@ -211,7 +211,7 @@ bool Snapshot::take_snapshot(const char *filename) {
exact = !name.empty();
if (name_changed) {
ESP_LOGW(TAG, "Requested snapshot name '%s' is not an acceptable file name, using '%s' instead", filename,
name.empty() ? "a name made from the time" : name.c_str());
name.empty() ? LOG_STR_LITERAL("a name made from the time") : name.c_str());
}
}
if (name.empty()) {