1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

[http_request.update] Fix `size_t` printing (#9144)

This commit is contained in:
Jesse Hills
2025-07-01 08:50:19 +12:00
committed by GitHub
parent 98e106e0ae
commit 78c8cd4c4e

View File

@@ -57,7 +57,7 @@ void HttpRequestUpdate::update_task(void *params) {
RAMAllocator<uint8_t> allocator; RAMAllocator<uint8_t> allocator;
uint8_t *data = allocator.allocate(container->content_length); uint8_t *data = allocator.allocate(container->content_length);
if (data == nullptr) { if (data == nullptr) {
std::string msg = str_sprintf("Failed to allocate %d bytes for manifest", container->content_length); std::string msg = str_sprintf("Failed to allocate %zu bytes for manifest", container->content_length);
this_update->status_set_error(msg.c_str()); this_update->status_set_error(msg.c_str());
container->end(); container->end();
UPDATE_RETURN; UPDATE_RETURN;