mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 14:46:40 +00:00
[http_request.update] Fix `size_t
` printing (#9144)
This commit is contained in:
parent
98e106e0ae
commit
78c8cd4c4e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user