diff --git a/esphome/components/bluetooth_proxy/bluetooth_connection.cpp b/esphome/components/bluetooth_proxy/bluetooth_connection.cpp index 2f350d74fc..dee5977e5f 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_connection.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_connection.cpp @@ -294,9 +294,9 @@ void BluetoothConnection::send_service_for_discovery_() { current_size += service_size; // Log the difference between estimate and actual size - int size_diff = (int) service_size - (int) estimated_size; ESP_LOGV(TAG, "[%d] [%s] Service %d actual: %d, estimated: %d, diff: %+d", this->connection_index_, - this->address_str().c_str(), this->send_service_, service_size, estimated_size, size_diff); + this->address_str().c_str(), this->send_service_, service_size, estimated_size, + (int) service_size - (int) estimated_size); // Successfully added this service, increment counter this->send_service_++;