mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[http_request.update] Fix `size_t` printing (#9144)
				
					
				
			This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user